tazlito rev 484

tazlito: remove /boot/grub on cdrom (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 17:55:06 2018 +0100 (2018-02-25)
parents dd492543ffe4
children 66335bf0d909
files tazlito
line diff
     1.1 --- a/tazlito	Thu Feb 22 22:52:39 2018 +0100
     1.2 +++ b/tazlito	Sun Feb 25 17:55:06 2018 +0100
     1.3 @@ -514,6 +514,7 @@
     1.4  	cd $2
     1.5  	deduplicate
     1.6  
     1.7 +	rm -rf $2/boot/grub*
     1.8  	make_bzImage_hardlink $2/boot
     1.9  	alloc_uefi_part $(ls -r $2/boot/vmlinuz*slitaz*)
    1.10  
    1.11 @@ -1521,7 +1522,6 @@
    1.12  	build_initfs ram || return 1
    1.13  	build_loram_rootfs    "$1"
    1.14  	cp -a $TMP_DIR/iso    $TMP_DIR/loramiso
    1.15 -	make_bzImage_hardlink $TMP_DIR/loramiso/boot
    1.16  	mv $TMP_DIR/initfs.gz $TMP_DIR/loramiso/boot/rootfs.gz
    1.17  	cp $TMP_DIR/rootfs*   $TMP_DIR/loramiso/boot
    1.18  	update_metaiso_sizes
    1.19 @@ -2630,9 +2630,6 @@
    1.20  		if [ -d "$ROOTFS/boot" ] ; then
    1.21  			action 'Moving the boot directory...'
    1.22  			mv $ROOTFS/boot $ROOTCD
    1.23 -			cd $ROOTCD/boot
    1.24 -			rm -rf grub*
    1.25 -			make_bzImage_hardlink
    1.26  			status
    1.27  		fi
    1.28  		cd $DISTRO
    1.29 @@ -2710,7 +2707,6 @@
    1.30  				install_list_to_rootfs "$DISTRO/list-packages0$n" "${ROOTFS}0$n"
    1.31  
    1.32  				cp -a ${ROOTFS}0$n/boot $ROOTCD
    1.33 -				make_bzImage_hardlink $ROOTCD/boot
    1.34  				rm -rf ${ROOTFS}0$n/boot
    1.35  
    1.36  				cd $DISTRO