Skip to content

Instantly share code, notes, and snippets.

@dbiesecke
Last active June 21, 2019 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbiesecke/50df942ef1a5e010bd85c0ceaece4bd4 to your computer and use it in GitHub Desktop.
Save dbiesecke/50df942ef1a5e010bd85c0ceaece4bd4 to your computer and use it in GitHub Desktop.
Remaster Linux ISO / create own live linux

GRML

  • remaster mit grml-live: grml-live -g gr -c GRMLBASE,GRML_FULL,AMD64 -i ../../../home/user/grml_0.0-1.iso -v 0.0-1 -I /tmp/chroot_add/ -N

  • now remaster your CHROOT

  • after youre fine, build it all with: grml-live -g gr -c GRMLBASE,GRML_FULL,AMD64 -i ../../../home/user/grml_0.0-1.iso -v 0.0-1 -I /tmp/chroot_add/ -u

  • add files to iso: xorriso -outdev output.iso -indev grml_0.0-1.iso -blank as_needed -map ./config.bz2 /config.tbz -boot_image isolinux partition_table=on -boot_image isolinux dir=/boot/isolinux

*DEFAULT_BOOTOPTIONS="persistence service=autofs netscript=home.forward.pw/grml/test.pl netconfig=home.forward.pw/grml/config.tbz ssh=yeah12ha lang=de nobeep noeject vnc=yeah12ha startkde"

Add package to chroot (dirty way)

  • Extract deb file & sync it to chroot/rootfs

          % sudo dpkg-repack --generate autofs                                                                                                                                                                              :(
          dpkg-repack: Skipping obsolete conffile /etc/init/autofs.conf
          dpkg-repack: Warnung: unbekanntes Informationsfeld »Original-Maintainer« in den Eingabedaten in Eintrag in Dpkgs Statusdatei
          dpkg-repack: created dpkg-repack.autofs.1FPV9N for autofs
          
          % cd dpkg-repack.autofs*
          % rsync -cvr --perms --progress --exclude=DEBIAN . ../rootfs/
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment