Merge ~vorlon/ubiquity:right-target-env-for-update-initramfs into ubiquity:main

Proposed by Steve Langasek
Status: Needs review
Proposed branch: ~vorlon/ubiquity:right-target-env-for-update-initramfs
Merge into: ubiquity:main
Diff against target: 33 lines (+13/-0)
2 files modified
debian/changelog (+7/-0)
scripts/zsys-setup (+6/-0)
Reviewer Review Type Date Requested Status
Ubuntu Installer Team Pending
Review via email: mp+431755@code.launchpad.net
To post a comment you must log in.

Unmerged commits

370a463... by Steve Langasek

scripts/zsys-setup: ensure virtfs mounts are present in the target before calling update-initramfs.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 1c91c63..f93b7fe 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+ubiquity (22.10.10) UNRELEASED; urgency=medium
7+
8+ * scripts/zsys-setup: ensure virtfs mounts are present in the target
9+ before calling update-initramfs.
10+
11+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 18 Oct 2022 11:23:37 -0700
12+
13 ubiquity (22.10.9) kinetic; urgency=medium
14
15 * partman/resize: add a margin to the minimal size for partition shrinking
16diff --git a/scripts/zsys-setup b/scripts/zsys-setup
17index 78df4f3..9a325f2 100755
18--- a/scripts/zsys-setup
19+++ b/scripts/zsys-setup
20@@ -615,7 +615,13 @@ elif [ "${COMMAND}" = "finalize" ]; then
21 if [ -b /dev/mapper/cryptoswap ]; then
22 mkdir -p "${TARGET}/etc/initramfs-tools/conf.d"
23 echo "RESUME=none" > "${TARGET}/etc/initramfs-tools/conf.d/resume"
24+ mount -t proc proc "$TARGET/proc"
25+ mount -t sysfs sysfs "$TARGET/sys"
26+ mount --bind /run "$TARGET/run"
27+ mount --bind /dev/ "$TARGET/dev"
28 chroot "${TARGET}" update-initramfs -u
29+ # lazy unmount to increase the chances of success
30+ umount -l "$TARGET/proc" "$TARGET/sys" "$TARGET/run" "$TARGET/dev"
31 fi
32
33 echo "I: ZFS setup complete"

Subscribers

People subscribed via source and target branches