Merge lp:~smoser/maas-images/trunk.squashfs-precise into lp:maas-images

Proposed by Scott Moser
Status: Merged
Merged at revision: 367
Proposed branch: lp:~smoser/maas-images/trunk.squashfs-precise
Merge into: lp:maas-images
Diff against target: 31 lines (+5/-2)
1 file modified
bin/kpack-from-image (+5/-2)
To merge this branch: bzr merge lp:~smoser/maas-images/trunk.squashfs-precise
Reviewer Review Type Date Requested Status
Blake Rouse (community) Approve
Review via email: mp+323673@code.launchpad.net

Description of the change

For some work we were doing testing use of squashfs in precise this is needed.

To post a comment you must log in.
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Tested it. Works

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/kpack-from-image'
2--- bin/kpack-from-image 2016-03-03 17:11:42 +0000
3+++ bin/kpack-from-image 2017-05-05 14:45:39 +0000
4@@ -176,7 +176,7 @@
5 }
6
7 config_addl_modules() {
8- local root="${1:-/}" fname=""
9+ local root="${1:-/}" rel="$2" fname=""
10 fname="${root%/}/etc/initramfs-tools/hooks/kpack_extra"
11 cat > "$fname" <<EOF
12 #!/bin/sh
13@@ -186,6 +186,9 @@
14 copy_modules_dir kernel/drivers/net/usb # LP: #1552378
15 manual_add_modules bcache # (LP: #1513176)
16 EOF
17+ if [ "$rel" = "precise" ]; then
18+ echo "manual_add_modules squashfs # (LP: #1501834)" >> "$fname"
19+ fi
20 [ $? -eq 0 ] || { error "failed writing $fname"; return 1; }
21 chmod 755 "$fname" ||
22 { error "failed setting execute on $fname"; return 1; }
23@@ -296,7 +299,7 @@
24
25 which eatmydata >/dev/null 2>&1 && emd=eatmydata
26
27- config_addl_modules / ||
28+ config_addl_modules / "$rel" ||
29 { error "failed configuring additional modules!"; return 1; }
30
31 ensure_iscsi_initramfs_support / ||

Subscribers

People subscribed via source and target branches