From: longpanda Date: Mon, 11 Oct 2021 09:44:12 +0000 (+0800) Subject: Optimization for LiveCDGUI X-Git-Tag: v1.0.54~4 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/5a591c1ae7bff14e5a4370fde0e8f335b44b75da?ds=inline Optimization for LiveCDGUI --- diff --git a/LiveCDGUI/EXT/README.txt b/LiveCDGUI/EXT/README.txt index f01fc31..a60aff2 100644 --- a/LiveCDGUI/EXT/README.txt +++ b/LiveCDGUI/EXT/README.txt @@ -1,5 +1,5 @@ -All the files here are from Porteus-Kiosk-5.2.0-x86_64.iso (https://porteus-kiosk.org/public/5.2/) +Files bellow are from Porteus-Kiosk-5.2.0-x86_64.iso (https://porteus-kiosk.org/public/5.2/) MD5SUM: 42857b439725a0e1adb0c396849f57c9 EXT/000-kernel.xzm @@ -9,3 +9,14 @@ aafb2191accb37bd6725c84522c92e51 EXT/003-settings.xzm 501b6096122dcf0da75cdbba1868cd31 EXT/06-fonts.xzm ce677b50b223ce76df070d23af016338 EXT/initrd.xz 9e96e4550de38f8e22733a0afe56dab3 EXT/vmlinuz + + +Files in ntfs-3g.tar.gz are from ntfs-3g_2021.8.22-2_amd64.deb and libntfs-3g89_2021.8.22-2_amd64.deb +http://ftp.debian.org/debian/pool/main/n/ntfs-3g/ntfs-3g_2021.8.22-2_amd64.deb +http://ftp.debian.org/debian/pool/main/n/ntfs-3g/libntfs-3g89_2021.8.22-2_amd64.deb + + +busybox-x86_64 is from https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-x86_64 +MD5SUM +ea7e2353af0067a926d3e021e504290e EXT/busybox-x86_64 + diff --git a/LiveCDGUI/EXT/busybox-x86_64 b/LiveCDGUI/EXT/busybox-x86_64 new file mode 100644 index 0000000..6206a94 Binary files /dev/null and b/LiveCDGUI/EXT/busybox-x86_64 differ diff --git a/LiveCDGUI/EXT/ntfs-3g.tar.gz b/LiveCDGUI/EXT/ntfs-3g.tar.gz new file mode 100644 index 0000000..befdf3a Binary files /dev/null and b/LiveCDGUI/EXT/ntfs-3g.tar.gz differ diff --git a/LiveCDGUI/VTOY/autostart b/LiveCDGUI/VTOY/autostart index 2a98b9c..6c6c202 100644 --- a/LiveCDGUI/VTOY/autostart +++ b/LiveCDGUI/VTOY/autostart @@ -9,6 +9,21 @@ echo "Language=Chinese Simplified (简体中文)" >> $INIFILE echo "PartStyle=0" >> $INIFILE echo "ShowAllDevice=0" >> $INIFILE + +VTOOLDIR=/ventoy/tool/x86_64 + +ls -1 $VTOOLDIR/ | grep '\.xz$' | while read line; do + $VTOOLDIR/xzcat $VTOOLDIR/$line > $VTOOLDIR/${line%.xz} + rm -f $VTOOLDIR/$line + chmod +x $VTOOLDIR/${line%.xz} +done + +cp -a $VTOOLDIR/mount.exfat-fuse /bin/mount.exfat +cp -a $VTOOLDIR/mkexfatfs /bin/mkfs.exfat + +/usr/local/sbin/busybox --install /usr/local/sbin/ +tar xf /usr/local/sbin/ntfs-3g.tar.gz -C / + /ventoy/tool/x86_64/Ventoy2Disk.gtk3 --kiosk reboot diff --git a/LiveCDGUI/VTOY/init b/LiveCDGUI/VTOY/init index 957d417..afd457a 100644 --- a/LiveCDGUI/VTOY/init +++ b/LiveCDGUI/VTOY/init @@ -82,10 +82,23 @@ fi mkdir -p /union/opt/scripts/ echo 123 > /union/opt/scripts/extras + +echo "c2::respawn:/sbin/agetty --autologin root 38400 tty2 linux" >> /union/etc/inittab +echo "c3::respawn:/sbin/agetty --autologin root 38400 tty3 linux" >> /union/etc/inittab +echo "c4::respawn:/sbin/agetty --autologin root 38400 tty4 linux" >> /union/etc/inittab + + +sed "s/root:[^:]*:/root::/g" -i /union/etc/shadow +rm -f /union/etc/X11/xorg.conf.d/10-xorg.conf rm -f /union/lib64/udev/rules.d/10-kiosk-auto_mount.rules cp -a /VTOY/autostart /union/etc/xdg/openbox/autostart cp -a /VTOY/*.png /union/ventoy/ +mkdir -p /union/usr/local/sbin +mv /VTOY/ntfs-3g.tar.gz /union/usr/local/sbin/ +mv /VTOY/busybox /union/usr/local/sbin/ + + cp -a /bin/busybox /union/bin; ln -sf /union/lib /lib cp -a /VTOY/wallpaper.png /union/usr/share/wallpapers/ 2>/dev/null diff --git a/LiveCDGUI/initrd.sh b/LiveCDGUI/initrd.sh index 4298a18..5cb23e2 100644 --- a/LiveCDGUI/initrd.sh +++ b/LiveCDGUI/initrd.sh @@ -23,6 +23,9 @@ cd _INITRD_ xzcat ../EXT/initrd.xz | cpio -idmu --quiet >/dev/null 2>&1 cp -a ../EXT/*.xzm ./ cp -a ../VTOY ./ +cp -a ../EXT/ntfs-3g.tar.gz ./VTOY/ +cp -a ../EXT/busybox-x86_64 ./VTOY/busybox + chown -R 0:0 ./VTOY chmod -R 777 ./VTOY