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
diff --git a/debian/changelog b/debian/changelog
index 1c91c63..f93b7fe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1ubiquity (22.10.10) UNRELEASED; urgency=medium
2
3 * scripts/zsys-setup: ensure virtfs mounts are present in the target
4 before calling update-initramfs.
5
6 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 18 Oct 2022 11:23:37 -0700
7
1ubiquity (22.10.9) kinetic; urgency=medium8ubiquity (22.10.9) kinetic; urgency=medium
29
3 * partman/resize: add a margin to the minimal size for partition shrinking10 * partman/resize: add a margin to the minimal size for partition shrinking
diff --git a/scripts/zsys-setup b/scripts/zsys-setup
index 78df4f3..9a325f2 100755
--- a/scripts/zsys-setup
+++ b/scripts/zsys-setup
@@ -615,7 +615,13 @@ elif [ "${COMMAND}" = "finalize" ]; then
615 if [ -b /dev/mapper/cryptoswap ]; then615 if [ -b /dev/mapper/cryptoswap ]; then
616 mkdir -p "${TARGET}/etc/initramfs-tools/conf.d"616 mkdir -p "${TARGET}/etc/initramfs-tools/conf.d"
617 echo "RESUME=none" > "${TARGET}/etc/initramfs-tools/conf.d/resume"617 echo "RESUME=none" > "${TARGET}/etc/initramfs-tools/conf.d/resume"
618 mount -t proc proc "$TARGET/proc"
619 mount -t sysfs sysfs "$TARGET/sys"
620 mount --bind /run "$TARGET/run"
621 mount --bind /dev/ "$TARGET/dev"
618 chroot "${TARGET}" update-initramfs -u622 chroot "${TARGET}" update-initramfs -u
623 # lazy unmount to increase the chances of success
624 umount -l "$TARGET/proc" "$TARGET/sys" "$TARGET/run" "$TARGET/dev"
619 fi625 fi
620626
621 echo "I: ZFS setup complete"627 echo "I: ZFS setup complete"

Subscribers

People subscribed via source and target branches