# HG changeset patch # User Pascal Bellard # Date 1527674891 -7200 # Node ID 674d4b42127b7ec7d70702c36cf9aadc20f126ea # Parent 6d164da691458cb254b686264e54063d106d7ad3 fix cleanup_efi_boot diff -r 6d164da69145 -r 674d4b42127b tazlito --- a/tazlito Thu May 24 10:44:24 2018 +0200 +++ b/tazlito Wed May 30 12:08:11 2018 +0200 @@ -485,24 +485,20 @@ stat -c "%s %n" "$i" done 2> /dev/null efilinux="/EFI/BOOT/$(basename $1).efi" - eficmdline="$efilinux rw root=0x100 autologin\ + sed 's|/|\\|g' >> $basedir/efi/boot/startup.nsh <> $basedir/efi/boot/startup.nsh < /dev/null || continue + b=${i/\/efi\//\/} + cmp $i ${b%.efi} || continue rm -f $i case "$i" in - *vmlinuz*) sed -i '/# start /,/# stop /d' \ + *vmlinuz*) sed -i '/# start tazlito /,/# stop tazlito /d' \ $(dirname $i)/startup.nsh esac if [ ! -s $(dirname $i)/startup.nsh ]; then