\r
-All the files here are from Porteus-Kiosk-5.2.0-x86_64.iso (https://porteus-kiosk.org/public/5.2/)\r
+Files bellow are from Porteus-Kiosk-5.2.0-x86_64.iso (https://porteus-kiosk.org/public/5.2/)\r
\r
MD5SUM:\r
42857b439725a0e1adb0c396849f57c9 EXT/000-kernel.xzm\r
501b6096122dcf0da75cdbba1868cd31 EXT/06-fonts.xzm\r
ce677b50b223ce76df070d23af016338 EXT/initrd.xz\r
9e96e4550de38f8e22733a0afe56dab3 EXT/vmlinuz\r
+\r
+\r
+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\r
+http://ftp.debian.org/debian/pool/main/n/ntfs-3g/ntfs-3g_2021.8.22-2_amd64.deb\r
+http://ftp.debian.org/debian/pool/main/n/ntfs-3g/libntfs-3g89_2021.8.22-2_amd64.deb\r
+\r
+\r
+busybox-x86_64 is from https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-x86_64\r
+MD5SUM\r
+ea7e2353af0067a926d3e021e504290e EXT/busybox-x86_64\r
+\r
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
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
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