Skip to content

Instantly share code, notes, and snippets.

@s0racat
Last active December 30, 2024 14:49
Show Gist options
  • Save s0racat/cae529aafbec00152d22f6fe3a4c59ab to your computer and use it in GitHub Desktop.
Save s0racat/cae529aafbec00152d22f6fe3a4c59ab to your computer and use it in GitHub Desktop.
########### boot iso in vm ###########
echo exfat >> /etc/initramfs-tools/modules
cd /usr/share/initramfs-tools
grep iso-scan . -r
less scripts/casper-premount/20iso_scan
grep find_path . -r
vi scripts/casper-helpers
# Add a condition for `exfat` in the case statement of the is_supported_fs function.
update-initramfs.distrib -c -k $(uname -r)
cd /boot
python3 -m http.server
########### End boot iso in vm ###########
# Download initrd.img-$(uname -r)
7z x /path/to/.iso -owork
cp ~/Downloads/initrd.img work/casper/initrd.lz
cat work/.disk/mkisofs
docker run -it --rm -v .:/mnt ubuntu
########### docker ###########
apt install -y mkisofs isolinux xorriso
xorriso ...
########### End docker ###########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment