[arch-releng] [PATCH] [syslinux-iso] Add automated_script support
dieter at plaetinck.be
Sun Jan 30 04:05:34 EST 2011
On Sat, 29 Jan 2011 20:38:08 -0300
Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar> wrote:
> On 01/29/2011 08:01 PM, Dieter Plaetinck wrote:
> > On Sat, 29 Jan 2011 19:28:19 -0300
> > Gerardo Exequiel Pozzi<vmlinuz386 at yahoo.com.ar> wrote:
> >> On 01/28/2011 10:19 AM, Dieter Plaetinck wrote:
> > well, i mention running aif explicitly, because this was the original use case
> > ( https://bbs.archlinux.org/viewtopic.php?id=111925)
> > and this will probably also be -by far- the most common use case. So we should be sure it works fine before merging. (it seems reasonable to test both an automatic and an interactive install)
> > maybe there is an easy way to make this script set up another script so that it will be run after the boot process has completed.
> > for example, the script could be something like:
> > echo 'aif -p automatic -c<config>'>> /etc/rc.local
> > chmod +x /etc/rc.local
> Originaly, the script overwrites the rc.local (from rc.d/archiso). I
> modified it to run after rc.local (this is multi_end hook).
> > however, I think that will also be run before the MOTD gets shown.
> > Ideally, I think the script would set up auto login as root, and then put the aif invocation in /root/.bash_profile, or something like that.
> > But it's probably too late to set up auto login as root, because that needs to be done by modifying /etc/inittab, but init is already running...
> This sound much better, running from /root/.bash_profile. Or just having
> a modified inittab that runs agetty with automatic login.
I don't think it's possible to modify inittab to run agetty with auto login, while init is already running.
However, I think it would be good to enable autologin as root on tty1 by putting the inittab file in the overlay. this will also make manually running the image a tiny bit more convenient, and should solve the above problem. although i'm not sure what happens with the motd on autologin (doesn't the console get reset? although that might also be configurable through inittab)
I guess we/Charles will just need to try a few approaches and see what works best.
More information about the arch-releng