An open-source entry in TopGit's GitHub warehouse: 9001/asm, 30 stars, Shell. scriptable runtime-writable livecd / hardware wrangler
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
the example asm.sh shows a menu with some demo features:
1 shows a list of local HDDs and asks for a selection
maybe for entering a chroot or something
i collects a bunch of hardware info and saves it to sm/infos on the flashdrive
n starts networking and sshd after asking for static or dynamic IP
z exits to a shell with exit 0
x does an exit 1 which also gives a shell but with vim and tmux preinstalled
k shutdown
r reboot
it plays the pc98 bootup bleep to let you know it's at the menu in case you don't have a monitor
you can mute SFX by creating a file named sm/quiet on the flashdrive
or beep even more with grub_beep in post-build-2.sh
or if the beeps don't work, create sm/sound.txt
see profiles for additional examples including a chatserver, a disk wiper and a webkiosk
see logging to log stdout to serial and/or a file on the flashdrive, and/or launch interactive shells on consoles
secureboot
the uki profile shows how to securely verify the integrity of all resources during boot, using secureboot and (a bespoke alternative to) measured boot
build it
if you are on linux or macos,
install qemu and run ./build.sh
you will get asm.usb which you can write to a usb flashdrive
can additionally produce a hybrid ISO for burning to CD/DVD with -oi
optionally specify -cb alpine:latest to disable qemu and use podman/docker instead; about 12 sec faster but has too many drawbacks to be recommended (cannot crosscompile, not as reliable or predictable, requires root + access to /dev for losetup, a typo in postbuild can wipe your HDD, is less cool)
and, if all else fails, a very basic build can be made manually instead of using ./build.sh at all
write it to a flashdrive
on linux, cat asm.usb >/dev/sdi
on windows, either use rufus or USBimager (Recommended)
you want the GDI wo edition of USBimager -- the default choice when visiting that URL on windows
usbimager v1.0.9 is 10x faster than rufus if you are repeatedly writing similar usb images to the same flashdrive
rufus v3.15 permanently unmounts the flashdrive when done, so run rufus-unhide.bat afterwards
do not use balenaEtcher, it is spyware
tip: if the flashdrive is larger than the image, it is safe and recommended to add a "data" partition to the flashdrive after writing the image:
on windows, use the win10 Disk Management utility, or better yet:
on linux, echo ,,07 | sfdisk -a /dev/sdi (followed by mkfs.ntfs -fL ASM2 /dev/sdi2 if there is no existing filesystem to keep)
linux-only bonus: you can write a new asm image onto the flashdrive without losing anything on the data partition, as long as the new build is the same size or smaller -- just need to issue the sfdisk command again
linux-only because windows is very persistent in blanking any filesystem headers it can find
write it to a CD
if you haven't made an asm.iso yet, convert an existing asm.usb with ./u2i.sh asm.usb asm.iso
optionally PGO the iso (runs 30% faster) by capturing the access pattern of a vm booting it
start the tracer: ./utils/isotrace.py asm.iso asm.wl
-dao runs better than -tao but some drives from the 90s can only read -tao
rapid prototyping
if you are working on asm.sh and you're testing your image by repeatedly making an iso and booting that in virtualbox/vmware/bare-metal, it would be much faster to instead mount asm.usb and make changes directly inside the image, and then use u2i.sh to build the iso from the mounted folder instead of doing a full build:
mkdir -p m; mount -o offset=1048576,uid=1000 asm.usb m
# make changes inside m, leave it mounted and
# do the following to make an iso whenever:
./u2i.sh m asm.iso
cat <asm.iso >/dev/sdx
cat <asm.iso >/dev/sdx can be replaced with revert /dev/sdx <asm.iso for much faster writes; see revert
if you need secureboot / measured-boot, run this before u2i: ./mod.sh -u m -ak ~/keys/asm.key
you still need to do a full build when you change the set of included packages or make changes to the initramfs
make it your own
the recommended / intended way to replace the demos / examples with your own stuff is to create profiles/overlays with your logic and payloads -- see the examples for some inspiration
you should never have to modify ./build.sh since that should JustWork, so let me know if there's something i've missed
custom build steps
./sm/post-build.sh is executed in the build-env right before the end
by default it does nothing but it provides a library of helpers / examples,
an rshell for prototyping / debugging your extensions
shrinking the output image
adding more APKs
see how the profiles extend it by providing a post-build-2.sh which gets chainloaded:
profiles
if you are building several images with different contents (bootscripts, initramfs, ...) you can use the -p option to specify a profile/overlay which will replace corresponding files inside sm and etc at build-time
compatibility
should work on most BIOS and UEFI boxes with a few exceptions;
BIOS boxes too ancient and buggy, requiring a proper hybrid-iso
workaround: use -oi to create a read-only hybrid iso
UEFI-only boxes which refuse to boot from MBR
workaround: modify the fdisk/sfdisk invocation to build a GPT-formatted flashdrive instead of MBR, killing BIOS support
alternatives
mkosi (article) looks interesting (but doesn't support alpine yet)
The most recent commit recorded on 9001/asm was 1 month ago, based on the GitHub push timestamp. The repository has 5 forks — one of the better signals of community interest.
How many stars does 9001/asm have?
9001/asm has 30 GitHub stars — refresh the page for the live number, or check github.com/9001/asm. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is 9001/asm open source?
Yes — 9001/asm ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/9001/asm.
What is 9001/asm?
9001/asm (9001/asm) is a Shell project on GitHub. From the project's own README: scriptable runtime-writable livecd / hardware wrangler
Where do I read more about 9001/asm?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/9001/asm is the definitive source.
Read full README in the tab above.
Want a second opinion on asm?
Ask an AI that can read this page — one click and you get its take on asm.