About upstart problem in live-initramfs-1.118-2 (Was: A problem in live-initramfs-1.110.7)
- Subject: About upstart problem in live-initramfs-1.118-2 (Was: A problem in live-initramfs-1.110.7)
- From: steven at nchc.org.tw (Steven Shiau)
- Date: Thu, 06 Mar 2008 22:37:29 +0800
- Message-id: <[🔎] 47D001A9.70202@nchc.org.tw>
- In-reply-to: <4788E1E0.9000300@nchc.org.tw>
- References: <4788E1E0.9000300@nchc.org.tw>
Daniel,
This bug still exists in live-initramfs-1.118.2.
The substitution in /scripts/live-bottom/25configure_init will cause
created ubuntu live won't be able to login automatically in the console.
In a normal upstart, /dev/event.d/tty1 is like:
---------------
...
respawn
exec /sbin/getty 38400 tty1
---------------
Therefore the substitution for respawn in 25configure_init in
live-initramfs-1.118-2 is:
sed -i -e "s|^respawn.*|respawn /bin/login -f ${USERNAME}
</dev/$(basename ${f}) > /dev/$(basename ${f}) 2>\&1|" ${f}
It should be modified as:
sed -i -e "s|^exec.*|exec /bin/login -f ${USERNAME} </dev/$(basename
${f}) > /dev/$(basename ${f}) 2>\&1|" ${f}
Hope this can be fixed in the future release.
Thanks in advance.
Steven.
Steven Shiau wrote:
> Hi,
> I am trying to use live helper with Ubuntu. I found there is a problem in
> the file /scripts/live-bottom/25configure_init from live-initramfs-1.110.7.
>
> In a normal Ubuntu system (Ex 7.10 or 8.04 alpha3), the
> /etc/event.d/tty1 is like:
> ---------------
> ...
> respawn
> exec /sbin/getty 38400 tty1
> ---------------
>
> However, in the file /scripts/live-bottom/25configure_init from
> live-initramfs-1.110.7.
> --------------------
> ...
> then
> for f in /root/etc/event.d/tty*
> do
> sed -i -e "s|^respawn.*|respawn
> /bin/login -f ${USERNAME} </dev/$(basename ${f}) > /dev/$(basename ${f})
> 2>\&1|" ${f}
> done
> fi
> --------------------
> IMHO, the substitute for respawn should be exec, i.e.
> sed -i -e "s|^respawn.*|respawn /bin/login -f ${USERNAME}
> </dev/$(basename ${f}) > /dev/$(basename ${f}) 2>\&1|" ${f}
> should be modified as:
> sed -i -e "s|^exec.*|exec /bin/login -f ${USERNAME} </dev/$(basename
> ${f}) > /dev/$(basename ${f}) 2>\&1|" ${f}
>
>
> Regards,
> Steven.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
Reply to: