diff --git a/scripts/00-update b/scripts/00-update index 2e27d9952c027f68987c44e63f62bb63b2c1cd32..9804adf764c85c2ee764249555b3dee2a86e9ae6 100755 --- a/scripts/00-update +++ b/scripts/00-update @@ -91,6 +91,11 @@ chroot "$CHROOTDIR" apt-key add - < "$TEMPLATES"/disk.key # Changes distro chroot "$CHROOTDIR" apt-get -y --force-yes update +# Avoid the grub-probe error when updating the kernel image +sed -i s/'exec update-grub'/'# exec update-grub'/g \ + "$CHROOTDIR"/etc/kernel/postinst.d/zz-update-grub + + # Installs le-autoupgrade so the apt_preferences file is in place for the # rest of the process chroot "$CHROOTDIR" apt-get -y --force-yes install le-autoupgrade diff --git a/scripts/40-configure_le5 b/scripts/40-configure_le5 index 898f62a596eec2d9517531d415a1e8f922698aa8..3ec3f089fdccbb302d40ceec0abf394b8792d8e5 100755 --- a/scripts/40-configure_le5 +++ b/scripts/40-configure_le5 @@ -96,6 +96,10 @@ chroot $CHROOTDIR dpkg-reconfigure le-greeter cp -f "$TEMPLATES"/casper/10adduser \ "$CHROOTDIR"/usr/share/initramfs-tools/scripts/casper-bottom/10adduser +# Re-enable update-grub on the kernel postinst +sed -i s/'# exec update-grub'/'exec update-grub'/g \ + "$CHROOTDIR"/etc/kernel/postinst.d/zz-update-grub + # Sets deb-conf install command sed -i 's@Ubuntu@LE@g' "$CDDIR"/preseed/ubuntu.seed sed -i 's@ubuntu@le@g' "$CDDIR"/preseed/ubuntu.seed diff --git a/scripts/40-configure_minicom b/scripts/40-configure_minicom index 708a148e5f84d59c6d37229eb300e38936d1b334..7092d8b37549d54366dbe572347fb42cbe4d3f6b 100755 --- a/scripts/40-configure_minicom +++ b/scripts/40-configure_minicom @@ -73,6 +73,11 @@ INFO_ISO=$(echo "$1" | cut -d "/" -f 2) INFO_ISO="$INFO_ISO:"$(date +"%d-%m-%y") echo "$INFO_ISO" > "$CHROOTDIR"/etc/le/data_iso.txt + +# Re-enable update-grub on the kernel postinst +sed -i s/'# exec update-grub'/'exec update-grub'/g \ + "$CHROOTDIR"/etc/kernel/postinst.d/zz-update-grub + # Change the live user name case "$1" in "minicom/client")