Browse Source

Add support for 16GB USB

debconf
vinay 7 months ago
parent
commit
486d23bd92
1 changed files with 18 additions and 20 deletions
  1. +18
    -20
      prepare-usb.sh

+ 18
- 20
prepare-usb.sh View File

@ -28,19 +28,18 @@ then
exit 1
fi
OS_FOR_16GB="
alpine-standard-3.16.2-x86_64.iso*
debian-11.5.0-amd64-netinst.iso*
guix-system-install-1.3.0.x86_64-linux.iso*
manjaro-kde-21.3.7-220816-linux515.iso*
netboot.xyz.iso*
openwrt-22.03.2-x86-64-generic-ext4-combined.img*
proxmox-ve_7.2-1.iso*
systemrescue-9.05-amd64.iso*
tails-amd64-5.6.img*
trisquel-mini_10.0.1_amd64.iso*
ubuntu-22.04.1-desktop-amd64.iso*
zdebian-firmware-11.5.0-amd64-netinst.iso*
OS_FOR_16GB_DEB="
DEBIAN/debian-12.1.0-amd64-netinst.iso*
DEBIAN/debian-12.1.0-amd64-DVD-1.iso*
"
OS_FOR_16GB_OTH="
OTHER/znetboot.xyz.img*
OTHER/proxmox-ve_8.0-2.iso*
OTHER/systemrescue-9.05-amd64.iso*
OTHER/tails-amd64-5.16.img*
OTHER/ubuntu-23.04-desktop-amd64.iso*
OTHER/yunohost-bullseye-11.0.9-amd64-stable.iso*
OTHER/zarchcraft-2023.07.05-x86_64.iso*
"
OS_FOR_32GB_DEBIAN="
@ -51,15 +50,12 @@ OS_FOR_32GB_DEBIAN="
"
OS_FOR_32GB_OTHER="
OTHER/yunohost-bullseye-11.0.9-amd64-stable.iso*
OTHER/AV_Linux_MX_Edition-21.3_ahs_x64.iso*
OTHER/netboot.xyz.img*
OTHER/netboot.xyz.iso*
OTHER/znetboot.xyz.img*
OTHER/proxmox-ve_8.0-2.iso*
OTHER/systemrescue-9.05-amd64.iso*
OTHER/tails-amd64-5.16.img*
OTHER/trisquel_11.0_amd64.iso*
OTHER/ubuntu-22.04.1-desktop-amd64.iso*
OTHER/devuan_daedalus_5.0.0_amd64_minimal-live.iso*
OTHER/ubuntu-23.04-desktop-amd64.iso*
OTHER/devuan_daedalus_5.0.0_amd64_desktop-live.iso*
"
@ -79,7 +75,8 @@ if [ $size -eq 16 ]
then
$ventoy -i /dev/$usb -L MH-USB -I -g
sleep 20
OS=$OS_FOR_16GB
OS_DEB=$OS_FOR_16GB_DEB
OS_OTH=$OS_FOR_16GB_OTH
else
$ventoy -i /dev/$usb -L MH-USB -I -g
sleep 20
@ -93,6 +90,7 @@ mount /dev/$part /mnt/mhusb
mkdir -p /mnt/mhusb/OS/DEBIAN
mkdir -p /mnt/mhusb/OS/OTHER
mkdir -p /mnt/mhusb/Tools
mkdir -p /mnt/mhusb/ventoy
cd MH-USB/OS/
time $rsync $OS_DEB /mnt/mhusb/OS/DEBIAN
@ -102,7 +100,7 @@ cd ../Tools/
time $rsync $TOOLS /mnt/mhusb/Tools/
cd ../
time $rsync /home/vinay/mh/usb/MH-USB/ventoy /mnt/mhusb
time $rsync ventoy/ /mnt/mhusb/ventoy
#if [ $size -eq 32 ]
#then


Loading…
Cancel
Save