Merge lp:~seb128/debian-cd/layerfs-canary-option into lp:~ubuntu-cdimage/debian-cd/ubuntu

Proposed by Sebastien Bacher
Status: Merged
Approved by: Łukasz Zemczak
Approved revision: 2100
Merged at revision: 2100
Proposed branch: lp:~seb128/debian-cd/layerfs-canary-option
Merge into: lp:~ubuntu-cdimage/debian-cd/ubuntu
Diff against target: 38 lines (+8/-16)
1 file modified
tools/boot/hirsute/common.sh (+8/-16)
To merge this branch: bzr merge lp:~seb128/debian-cd/layerfs-canary-option
Reviewer Review Type Date Requested Status
Łukasz Zemczak Approve
Dimitri John Ledkov Pending
Review via email: mp+394137@code.launchpad.net

Commit message

Correctly set the layerfs kernel option for the canary image

The option got broken previous cycle due to some refactoring

Description of the change

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) :
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Thanks! This looks fine. I'll apply Dimitri's proposition as I like his attention to decreasing the overall-present duplication in our builder code!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/boot/hirsute/common.sh'
2--- tools/boot/hirsute/common.sh 2020-10-23 15:26:45 +0000
3+++ tools/boot/hirsute/common.sh 2020-11-18 20:08:23 +0000
4@@ -2,7 +2,14 @@
5 default_kernel_params() {
6 case $PROJECT in
7 ubuntu)
8- KERNEL_PARAMS="${KERNEL_PARAMS:+$KERNEL_PARAMS }file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash --- "
9+ # for multi-layer images, add a kernel command line option to set layerfs-path
10+ # and select the leaf filesystem to determine the list of layers to merge in
11+ # an overlay and boot from.
12+ if [ "$SUBPROJECT" = "canary" ]; then
13+ KERNEL_PARAMS="${KERNEL_PARAMS:+$KERNEL_PARAMS }file=/cdrom/preseed/ubuntu.seed layerfs-path=minimal.standard.live.squashfs maybe-ubiquity quiet splash --- "
14+ else
15+ KERNEL_PARAMS="${KERNEL_PARAMS:+$KERNEL_PARAMS }file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash --- "
16+ fi
17 ;;
18 ubuntukylin)
19 KERNEL_PARAMS="${KERNEL_PARAMS:+$KERNEL_PARAMS }file=/cdrom/preseed/ubuntu.seed locale=zh_CN keyboard-configuration/layoutcode?=cn maybe-ubiquity quiet splash --- "
20@@ -178,18 +185,3 @@
21 fi
22 }
23
24-# for multi-layer images, add a kernel command line option to set layerfs-path
25-# and select the leaf filesystem to determine the list of layers to merge in
26-# an overlay and boot from.
27-add_layerfs_path_opt() {
28- case $PROJECT in
29- ubuntu)
30- if [ "$SUBPROJECT" = "canary" ]; then
31- echo ' layerfs-path=minimal.standard.live.squashfs'
32- return
33- fi
34- ;;
35- *)
36- ;;
37- esac
38-}

Subscribers

People subscribed via source and target branches