tazlito rev 511

Do not overwrite user's /efi/boot/linux.cmdline
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 05 15:34:05 2018 +0200 (9 months ago)
parents 3ab0aff91019
children 2a856694226f
files tazlito
line diff
     1.1 --- a/tazlito	Sun Jun 03 15:43:24 2018 +0200
     1.2 +++ b/tazlito	Tue Jun 05 15:34:05 2018 +0200
     1.3 @@ -489,6 +489,7 @@
     1.4  				ln "$i" $basedir/efi/boot/ &&
     1.5  				stat -c "%s %n" "$i"
     1.6  			done 2> /dev/null
     1.7 +			[ -s $basedir/efi/boot/linux.cmdline ] ||
     1.8  			sed 's|/|\\|g' > $basedir/efi/boot/linux.cmdline <<EOT
     1.9  rw root=0x100 autologin\
    1.10  $( ( cd $basedir/efi/boot ; ls -r rootfs*gz ) | while read f ; do \