diff --git a/debian/changelog b/debian/changelog index 6eb04635..0f736f9c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (2.711) hirsute; urgency=medium + + * Perform fsck on all rootfs. (LP: #1912835) + * functions: stop removing systemd-detect-virt unconditionally in undivert_grub + (LP: #1902260) + + -- Dimitri John Ledkov Fri, 05 Feb 2021 12:48:44 +0000 + livecd-rootfs (2.710) hirsute; urgency=medium * esp: install grub in ubuntu bootloader id path, instead of removable. diff --git a/live-build/buildd/hooks/02-disk-image-uefi.binary b/live-build/buildd/hooks/02-disk-image-uefi.binary index 18f74bae..f75e3aa2 100755 --- a/live-build/buildd/hooks/02-disk-image-uefi.binary +++ b/live-build/buildd/hooks/02-disk-image-uefi.binary @@ -49,7 +49,7 @@ create_and_mount_uefi_partition() { mount "${uefi_dev}" "$mountpoint"/boot/efi cat << EOF >> "mountpoint/etc/fstab" -LABEL=UEFI /boot/efi vfat defaults 0 0 +LABEL=UEFI /boot/efi vfat defaults 0 1 EOF } diff --git a/live-build/functions b/live-build/functions index c1f8141c..ffeeeaec 100644 --- a/live-build/functions +++ b/live-build/functions @@ -417,7 +417,9 @@ undivert_grub() { --divert /etc/grub.d/30_os-prober.dpkg-divert \ --rename /etc/grub.d/30_os-prober - rm "$CHROOT_ROOT"/usr/bin/systemd-detect-virt + if grep -q "^exit 1$" "$CHROOT_ROOT"/usr/bin/systemd-detect-virt; then + rm "$CHROOT_ROOT"/usr/bin/systemd-detect-virt + fi chroot "$CHROOT_ROOT" dpkg-divert --remove --local \ --rename /usr/bin/systemd-detect-virt } diff --git a/live-build/ubuntu-core/hooks/05-create_minimal_fstab.chroot b/live-build/ubuntu-core/hooks/05-create_minimal_fstab.chroot index 461c752f..17c2e931 100755 --- a/live-build/ubuntu-core/hooks/05-create_minimal_fstab.chroot +++ b/live-build/ubuntu-core/hooks/05-create_minimal_fstab.chroot @@ -2,5 +2,5 @@ cat >>/etc/fstab< /etc/fstab << EOM -LABEL=cloudimg-rootfs / ext4 defaults 0 0 +LABEL=cloudimg-rootfs / ext4 defaults 0 1 EOM # for quantal and newer, add /etc/overlayroot.local.conf diff --git a/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary b/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary index 04446025..1b70a23e 100644 --- a/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary +++ b/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary @@ -48,7 +48,7 @@ hv_sock EOF cat << EOF >> "${scratch_d}/etc/fstab" -LABEL=$FS_LABEL / ext4 defaults 0 0 +LABEL=$FS_LABEL / ext4 defaults 0 1 EOF # Customise xrdp