dbiesecke
6/11/2019 - 11:53 PM

Remaster Linux ISO / create own live linux

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/