Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #177973 > unrolled thread

customizing debian-installer

Started byjurek <jurek.mlynarczyk@o2.pl>
First post2017-02-18 14:40 +0100
Last post2017-02-19 01:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  customizing debian-installer jurek <jurek.mlynarczyk@o2.pl> - 2017-02-18 14:40 +0100
    Re: customizing debian-installer Brian <ad44@cityscape.co.uk> - 2017-02-19 01:20 +0100

#177973 — customizing debian-installer

Fromjurek <jurek.mlynarczyk@o2.pl>
Date2017-02-18 14:40 +0100
Subjectcustomizing debian-installer
Message-ID<tcdp0-2tj-7@gated-at.bofh.it>
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?

Thanks!
Jurek

[toc] | [next] | [standalone]


#177984

FromBrian <ad44@cityscape.co.uk>
Date2017-02-19 01:20 +0100
Message-ID<tcnol-kh-1@gated-at.bofh.it>
In reply to#177973
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web