On Sat 18 Feb 2017 at 14:24:56 +0100, jurek wrote: > Hi, > > I'd like to have several debian-installers on one pendrive (luks > encrypted) and > keep them in subdirectories. > > I've set up grub.cfg in mbr to choose between them. > > At the moment it works, but I need to run several commands manually: > > For example: > > anna-install cryptsetup-udeb > anna-install crypto-dm-modules > anna-install crypto-modules > depmod -a > modprobe dm-mod > cryptsetup luksOpen /dev/sda3 sda3 > mkdir cdr > mount -t ext4 /dev/mapper/sda3 /cdr > umount /cdrom > mount --bind /cdr/i386 /cdrom > > How can I automate those commands?
Take a look at early_command and late_command to begin with. The Installation Manual should help. -- Brian.