diff options
| -rw-r--r-- | meta/recipes-core/initrdscripts/files/init-live.sh | 22 | ||||
| -rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb | 7 | 
2 files changed, 3 insertions, 26 deletions
| diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh index 82042bf2ee..ca4135141f 100644 --- a/meta/recipes-core/initrdscripts/files/init-live.sh +++ b/meta/recipes-core/initrdscripts/files/init-live.sh @@ -7,7 +7,6 @@ ROOT_IMAGE="rootfs.img"  MOUNT="/bin/mount"  UMOUNT="/bin/umount"  ISOLINUX="" -UNIONFS="no"  # Copied from initramfs-framework. The core of this script probably should be  # turned into initramfs-framework modules to reduce duplication. @@ -142,25 +141,10 @@ case $label in      boot)  	mkdir $ROOT_MOUNT  	mknod /dev/loop0 b 7 0 2>/dev/null - -	 -	if [ "$UNIONFS" = "yes" ]; then -	    mkdir /rootfs-tmp - -	    if ! $MOUNT -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE /rootfs-tmp ; then -		fatal "Could not mount rootfs image" -	    else -		mkdir /cow -		mount -t tmpfs -o rw,noatime,mode=755 tmpfs /cow -		mount -t unionfs -o dirs=/cow:/rootfs-tmp=ro unionfs $ROOT_MOUNT -		boot_live_root -	    fi +	if ! $MOUNT -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then +	    fatal "Could not mount rootfs image"  	else -	    if ! $MOUNT -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then -		fatal "Could not mount rootfs image" -	    else -		boot_live_root -	    fi +	    boot_live_root  	fi  	;;      install|install-efi) diff --git a/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb index 0cbfe0288b..8626bb5b33 100644 --- a/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb @@ -7,13 +7,6 @@ SRC_URI = "file://init-live.sh"  PR = "r11" -do_compile() { -	#if grep -q "CONFIG_UNION_FS=y" ${STAGING_KERNEL_DIR}/.config; then -	#	sed -i 's/UNIONFS="no"/UNIONFS="yes"/g' ${WORKDIR}/init-live.sh -	#fi -	: -} -   do_install() {          install -m 0755 ${WORKDIR}/init-live.sh ${D}/init  } | 
