From fb729146debbb52546518e42a31628ac0b05dbce Mon Sep 17 00:00:00 2001 From: longpanda Date: Thu, 11 Aug 2022 17:43:15 +0800 Subject: [PATCH] Fix the issue when booting latest Gentoo live. (#1770) --- IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh b/IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh index 5ee237ad..d0ba02a7 100644 --- a/IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh @@ -24,6 +24,9 @@ if $GREP -q kaspersky /proc/version; then if [ -f /ventoy/ventoy_persistent_map ]; then $SED "/sysresccd_parsecmdline[^(]*$/a\ BACKSTORE_CMD='LABEL=casper-rw,noloop'" -i /init fi +elif $GREP -q 'setting up the root filesystem' /init; then + $SED "/setting up the root filesystem/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/gentoo/disk_hook.sh" -i /init + $SED "/setting up the root filesystem/a\ export CDROOT_DEV=/dev/mapper/ventoy" -i /init elif [ -d /etc/udev/rules.d ] || [ -d /lib/udev/rules.d ]; then ventoy_systemd_udevd_work_around ventoy_add_udev_rule "$VTOY_PATH/hook/default/udev_disk_hook.sh %k noreplace"