Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
5a591c1a
Commit
5a591c1a
authored
Oct 11, 2021
by
longpanda
Browse files
Optimization for LiveCDGUI
parent
e208199c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
1 deletion
+43
-1
LiveCDGUI/EXT/README.txt
LiveCDGUI/EXT/README.txt
+12
-1
LiveCDGUI/EXT/busybox-x86_64
LiveCDGUI/EXT/busybox-x86_64
+0
-0
LiveCDGUI/EXT/ntfs-3g.tar.gz
LiveCDGUI/EXT/ntfs-3g.tar.gz
+0
-0
LiveCDGUI/VTOY/autostart
LiveCDGUI/VTOY/autostart
+15
-0
LiveCDGUI/VTOY/init
LiveCDGUI/VTOY/init
+13
-0
LiveCDGUI/initrd.sh
LiveCDGUI/initrd.sh
+3
-0
No files found.
LiveCDGUI/EXT/README.txt
View file @
5a591c1a
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
LiveCDGUI/EXT/busybox-x86_64
0 → 100644
View file @
5a591c1a
File added
LiveCDGUI/EXT/ntfs-3g.tar.gz
0 → 100644
View file @
5a591c1a
File added
LiveCDGUI/VTOY/autostart
View file @
5a591c1a
...
...
@@ -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
LiveCDGUI/VTOY/init
View file @
5a591c1a
...
...
@@ -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
...
...
LiveCDGUI/initrd.sh
View file @
5a591c1a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment