mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-27 16:01:14 +00:00
Optimization for LiveCDGUI
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user