Optimization for LiveCDGUI

This commit is contained in:
longpanda 2021-10-11 17:44:12 +08:00
parent e208199cca
commit 5a591c1ae7
6 changed files with 43 additions and 1 deletions

View File

@ -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

Binary file not shown.

Binary file not shown.

View File

@ -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

View File

@ -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

View File

@ -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