From 9225c940a615780826278e37864396ff8a066e95 Mon Sep 17 00:00:00 2001 From: longpanda Date: Mon, 31 May 2021 21:02:46 +0800 Subject: [PATCH] optimization for cdlinux --- IMG/cpio/ventoy/hook/cdlinux/ventoy-hook.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IMG/cpio/ventoy/hook/cdlinux/ventoy-hook.sh b/IMG/cpio/ventoy/hook/cdlinux/ventoy-hook.sh index 41ac545a..0bbe835b 100644 --- a/IMG/cpio/ventoy/hook/cdlinux/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/cdlinux/ventoy-hook.sh @@ -36,6 +36,10 @@ done $BUSYBOX_PATH/umount /vtmnt && $BUSYBOX_PATH/rm -rf /vtmnt $BUSYBOX_PATH/cp -a /ventoy /ventoy_rdroot +if [ -f /etc/default/cdlinux ]; then + echo "CDL_WAIT=60" >> /etc/default/cdlinux +fi + echo 'echo "CDL_DEV=/dev/mapper/ventoy" >>"$VAR_FILE"' >> /ventoy_rdroot/etc/rc.d/rc.var ventoy_set_rule_dir_prefix /ventoy_rdroot