mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
initrdscripts: unionfs cleanup
The unionfs has been disabled for more than a year and it's not going to be used any more. This patch cleans up the unionfs related code. [YOCTO #4761] [YOCTO #1487] (From OE-Core rev: ba5e437bc7335468a70ea293496f78e1a9d66287) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -7,7 +7,6 @@ ROOT_IMAGE="rootfs.img"
|
|||||||
MOUNT="/bin/mount"
|
MOUNT="/bin/mount"
|
||||||
UMOUNT="/bin/umount"
|
UMOUNT="/bin/umount"
|
||||||
ISOLINUX=""
|
ISOLINUX=""
|
||||||
UNIONFS="no"
|
|
||||||
|
|
||||||
# Copied from initramfs-framework. The core of this script probably should be
|
# Copied from initramfs-framework. The core of this script probably should be
|
||||||
# turned into initramfs-framework modules to reduce duplication.
|
# turned into initramfs-framework modules to reduce duplication.
|
||||||
@@ -142,25 +141,10 @@ case $label in
|
|||||||
boot)
|
boot)
|
||||||
mkdir $ROOT_MOUNT
|
mkdir $ROOT_MOUNT
|
||||||
mknod /dev/loop0 b 7 0 2>/dev/null
|
mknod /dev/loop0 b 7 0 2>/dev/null
|
||||||
|
if ! $MOUNT -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then
|
||||||
|
fatal "Could not mount rootfs image"
|
||||||
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
|
|
||||||
else
|
else
|
||||||
if ! $MOUNT -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then
|
boot_live_root
|
||||||
fatal "Could not mount rootfs image"
|
|
||||||
else
|
|
||||||
boot_live_root
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
install|install-efi)
|
install|install-efi)
|
||||||
|
|||||||
@@ -7,13 +7,6 @@ SRC_URI = "file://init-live.sh"
|
|||||||
|
|
||||||
PR = "r11"
|
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() {
|
do_install() {
|
||||||
install -m 0755 ${WORKDIR}/init-live.sh ${D}/init
|
install -m 0755 ${WORKDIR}/init-live.sh ${D}/init
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user