From f26a927b3e2acf16820d118d5fc13b5dacbd122a Mon Sep 17 00:00:00 2001 From: longpanda Date: Tue, 2 Feb 2021 21:04:51 +0800 Subject: [PATCH] VentoyLiveCD x86_64 --- LiveCD/VTOY/ventoy/init.sh | 2 ++ LiveCD/livecd.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/LiveCD/VTOY/ventoy/init.sh b/LiveCD/VTOY/ventoy/init.sh index adf6bd13..8c056011 100644 --- a/LiveCD/VTOY/ventoy/init.sh +++ b/LiveCD/VTOY/ventoy/init.sh @@ -9,4 +9,6 @@ done sleep 5 echo "sh /ventoy/profile.sh" >> /root/.profile + +ln -s /lib /lib64 exec /init diff --git a/LiveCD/livecd.sh b/LiveCD/livecd.sh index 75c74bdc..f952bca5 100644 --- a/LiveCD/livecd.sh +++ b/LiveCD/livecd.sh @@ -39,7 +39,8 @@ fi mkdir -p ISO_TMP/EFI/ventoy cd VTOY_TMP -gcc -O2 -m32 ./ventoy/disksize.c -o ./ventoy/disksize +gcc -O2 ./ventoy/disksize.c -o ./ventoy/disksize + rm -f ./ventoy/disksize.c find . | cpio -o -H newc | gzip -c -9 > ../ISO_TMP/EFI/ventoy/ventoy.gz cd .. && rm -rf VTOY_TMP