The officially official Devuan Forum!

You are not logged in.

#1 2018-07-21 21:40:37

rustyr
Member
Registered: 2018-07-21
Posts: 1  

ASCII: Automated installation with OpenRC (using a preseed.cfg file)

Hi everybody,
currently I am writing a preseed.cfg that can be used by the debian/devuan installer for automatic installation of Ascii on my notebook (and some other devices later on too). I started with the Debian stretch example preseed file and besides some fights with the partitioning I was wondering about how to preseed for usage of OpenRC.

I did a manual 'expert' installation which allowed me to choose OpenRC during installation. After asking in the IRC channel, some kind replies from fsmithred, checking the output of debconf-get-selections --installer and looking at the source of the choose-init module at https://git.devuan.org/devuan-packages/choose-init/ now I got following solution (but did not test it yet):

What should be needed for preseeding the choose-init module are following two additional options in the presseed.cfg:

# load additional debian installer module 'choose-init'
# (or use multiselect in case of additional modules needed)
d-i anna/choose_modules string choose-init

# select openrc as the init system to use
choose-init choose-init/select_init select openrc

I am pretty sure about that the preseeding as shown above will work, but since from the sourcode of the choose-init module I only found

in-target sh -c "debconf-apt-progress --from 900 --to 950 --logstderr -- apt-get -q -y install -- openrc" || aptfailed fi

to be run, I wonder if simply adding the openrc package to the "d-i pkgsel/include string " does the same job. I think I will test both cases and see ... wink

Kind regards,
  RustyR.

Offline

#2 2020-06-16 17:41:45

morla
Member
Registered: 2020-06-16
Posts: 1  

Re: ASCII: Automated installation with OpenRC (using a preseed.cfg file)

Not an answer to the question, just a quick note. I was looking for a way to do this on the new beowulf release and it worked for me:

# load additional debian installer module 'choose-init'
# (or use multiselect in case of additional modules needed)
d-i anna/choose_modules string choose-init

# select openrc as the init system to use
choose-init choose-init/select_init select openrc

Offline

#3 2020-06-17 12:30:50

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: ASCII: Automated installation with OpenRC (using a preseed.cfg file)

Note that Devuan's beowulf installer will only set OpenRC as the service manager, sysvinit will still be used as PID1.

To use openrc-init as PID1 see https://dev1galaxy.org/viewtopic.php?id=2788


Brianna Ghey — Rest In Power

Offline

Board footer