Skip to content
Snippets Groups Projects
Commit 96c852c1 authored by Lucas Manika Koeb's avatar Lucas Manika Koeb
Browse files

Avoid grub-prob errors on le5 and minicom isos

parent e1be614e
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,12 @@ chroot "$CHROOTDIR" apt-get -y --force-yes update
# rest of the process
chroot "$CHROOTDIR" apt-get -y --force-yes install le-autoupgrade
# Avoid grub-probe errors
cp -f "$CHROOTDIR"/usr/sbin/grub-probe "$CHROOTDIR"/usr/sbin/grub-probe.tmp
echo "#!/bin/bash" > "$CHROOTDIR"/usr/sbin/grub-probe
echo "exit 0" >> "$CHROOTDIR"/usr/sbin/grub-probe
chmod a+x "$CHROOTDIR"/usr/sbin/grub-probe
closeChroot
exit 0
......@@ -96,6 +96,8 @@ chroot $CHROOTDIR dpkg-reconfigure le-greeter
cp -f "$TEMPLATES"/casper/10adduser \
"$CHROOTDIR"/usr/share/initramfs-tools/scripts/casper-bottom/10adduser
mv "$CHROOTDIR"/usr/sbin/grub-probe.tmp "$CHROOTDIR"/usr/sbin/grub-probe
# 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
......
......@@ -95,6 +95,8 @@ esac
echo "export \"FLAVOUR=le5\"" >> "$CHROOTDIR"/etc/casper.conf
mv "$CHROOTDIR"/usr/sbin/grub-probe.tmp "$CHROOTDIR"/usr/sbin/grub-probe
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment