Created from the
claude_template_repotemplate. That template supplies the secure Claude-first scaffolding (AI routing, security gates, BMAD, Kanban, devcontainer) this repo is built with. What this repo does is build a bootable rescue stick — see below.
Build a MediCat USB rescue stick from official sources with
one script. make-stick.sh fetches the latest Ventoy,
the current MediCat toolkit, and the newest Ubuntu ISO, verifies every download against
its publisher's checksum, tests the stick for counterfeit capacity, and writes it.
Nothing bootable is stored in this repo. Every archive and ISO is downloaded from its own publisher at build time, so the repo carries only the recipe.
git clone https://github.com/Moon-Knight13/medicat-usb.git
cd medicat-usb
./make-stick.sh update # fetch Ventoy, MediCat (~21 GB) and the latest Ubuntu ISO
./make-stick.sh list # find the stick, e.g. /dev/sdb
./make-stick.sh build /dev/sdb # wipes that stick and builds it (asks you to confirm, then for sudo)Requirements: a 64 GB or larger USB stick, about 30 GB of free disk for the downloads,
and on Debian/Ubuntu: sudo apt install p7zip-full ntfs-3g parted dosfstools aria2 f3.
The build takes 20 to 40 minutes, mostly extracting the 28 GB MediCat tree. The script
refuses anything that is not a whole USB disk, and runs f3probe first so a
counterfeit-capacity stick is rejected before anything is written (--skip-test skips
that). MBR layout is the default because it boots on old BIOS machines as well as UEFI;
--gpt is available if you need it.
./make-stick.sh update refreshes each source, skipping anything already current and
verified:
| Source | How the latest version is found | Verified by |
|---|---|---|
| Ventoy | newest GitHub release | release tarball |
| MediCat | version + SHA-256 read from the official installer, downloaded from the official mirrors | SHA-256 |
| Ubuntu | newest desktop amd64 ISO on releases.ubuntu.com; older ISOs are removed | SHA256SUMS |
extra-isos.txt |
fixed URLs, one Folder/on/stick | URL per line |
none, downloaded once |
make-stick.conf is committed, so every stick built from this repo comes out the same:
: "${UBUNTU_LTS_ONLY:=1}" # LTS releases only (recommended for a rescue stick)
: "${UBUNTU_FLAVOUR:=desktop}" # desktop | server
: "${PARTITION_STYLE:=mbr}" # mbr boots BIOS + UEFI; gpt if you need it
: "${STICK_TEST:=1}" # f3probe before writing, rejects counterfeit sticksEdit the file to change the defaults for the repo, or set the same name as an environment
variable for a one-off run, e.g. UBUNTU_LTS_ONLY=0 ./make-stick.sh update. The build
flags --gpt, --mbr and --skip-test override the file for a single build.
golden/ubuntu/ turns the Ubuntu ISO into a wipe-and-encrypt install that ends with your
favourite apps and settings, applied by Ansible at first boot. Only the identity and disk
pages are answered at the laptop, so no secrets live on the stick or in this repo. See
golden/README.md.
golden/raspberrypi/ flashes Raspberry Pi SD cards from a golden laptop (pi-flash) and
connects to the Pi (pi); update puts the pinned Raspberry Pi OS image on the stick.
Drop files anywhere under isos/; the tree is copied to the stick as-is and Ventoy lists
everything bootable. Match MediCat's folders so the boot menu stays tidy, for example
isos/Live_Operating_Systems/Linux_Mint/linuxmint-22.2.iso. Files under isos/ are
git-ignored.
| Path | What |
|---|---|
make-stick.sh |
the tool: update, list, build, status |
make-stick.conf |
repeatable settings, committed |
extra-isos.txt |
extra downloads for update, committed |
golden/<name>/ |
unattended install recipes; build registers them in the Ventoy menu |
golden/raspberrypi/ |
pi-flash and pi: flash a Raspberry Pi's SD card and open a shell on it |
tools/hwtest.sh |
deeper write/read-back test for a suspect stick: sudo tools/hwtest.sh /dev/sdX |
tools/vm-test.sh |
boot the ISO with a golden recipe, or the real stick, in a KVM virtual machine |
MediCat.USB.<ver>.7z, ventoy/, isos/, logs/ |
fetched or generated locally, git-ignored |
The scripts here are Apache 2.0 (see LICENSE). MediCat, Ventoy, Ubuntu and the tools
inside the MediCat archive are each licensed by their own publishers and are never
redistributed by this repo; update downloads them from their official sources onto
your machine, exactly as MediCat's own installer does.
- First boot on a Secure Boot machine asks you to enrol Ventoy's key through MokManager once.
- If a stick fails
f3probe, or the build reports that the partitions vanished after the Ventoy install, the stick is faulty. Bin it; no formatting will fix it. - The repo itself is developed inside the devcontainer inherited from the template; see docs/TEMPLATE_GUIDE.md.