preseed_late: use in-target instead of chroot

This commit is contained in:
Luca Capello 2012-11-06 17:40:11 +01:00
parent fbe13f8725
commit e853d313ca

View file

@ -15,7 +15,7 @@ sed -i "s/^set default=.*$/set default=\"3\"/" /hd-media/boot/grub/grub.cfg
if [ -d /target/etc/gdm3 ] ; then
# Enable automatic login (chroot because of bug in busybox sed)
chroot /target sed -i "/^\[daemon\]/a\AutomaticLoginEnable = true\nAutomaticLogin = debian" /etc/gdm3/daemon.conf
in-target sed -i "/^\[daemon\]/a\AutomaticLoginEnable = true\nAutomaticLogin = debian" /etc/gdm3/daemon.conf
fi