Hkboot 2022
if [ ! -b "$USB_DEV" ]; then echo "ERROR: $USB_DEV is not a block device" exit 1 fi read -p "This will ERASE $USB_DEV. Continue? [y/N] " confirm [[ "$confirm" =~ ^[Yy]$ ]] || exit 0
Use Rufus (v3.18+) or Ventoy.
hkboot-2022/
├── build.sh # Main build script
├── config/
│ ├── grub.cfg # GRUB menu entry definitions
│ ├── grub-theme/ # Custom theme (icons, background, fonts)
│ └── ventoy/
│ └── ventoy.json # Ventoy configuration overrides
├── payload/
│ ├── iso/ # Stock ISO files
│ │ ├── windows11.iso
│ │ ├── ubuntu-22.04.iso
│ │ ├── clonezilla.iso
│ │ ├── memtest86.iso
│ │ └── ...
│ ├── winpe/
│ │ ├── boot.wim # Custom WinPE image
│ │ └── scripts/
│ │ ├── startnet.cmd # WinPE launch script
│ │ └── unattend.xml # Automated install config
│ └── dos/
│ └── freedos.img # DOS boot disk image
├── tools/
│ ├── diskpart-scripts/
│ ├── registry-tweaks/
│ └── hardware-tools/ # Vendor-specific diagnostics
└── out/ # Build output → flash to USB
sudo umount /mnt/vtoy_efi /mnt/vtoy_ext /mnt/vtoy_data rm -rf "ventoy-$VTOY_VER" "$VTOY_TAR" hkboot 2022
echo "✅ HKBoot 2022 written to $USB_DEV" if [ ! -b "$USB_DEV" ]