diff --git a/LiveCDGUI/EXT/README.txt b/LiveCDGUI/EXT/README.txt index f01fc312..a60aff2f 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 00000000..6206a941 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 00000000..befdf3a2 Binary files /dev/null and b/LiveCDGUI/EXT/ntfs-3g.tar.gz differ diff --git a/LiveCDGUI/VTOY/autostart b/LiveCDGUI/VTOY/autostart index 2a98b9ce..6c6c202c 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 957d4172..afd457a9 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 4298a18b..5cb23e23 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