A problem in live-initramfs-1.110.7
- Subject: A problem in live-initramfs-1.110.7
- From: steven at nchc.org.tw (Steven Shiau)
- Date: Sat, 12 Jan 2008 23:50:56 +0800
- Message-id: <[🔎] 4788E1E0.9000300@nchc.org.tw>
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: