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: Fri, 07 Mar 2008 10:12:28 +0800
- Message-id: <[🔎] 47D0A48C.9020105@nchc.org.tw>
Daniel,
Please forgive my ignorance. I thought /etc/event.d/tty* is only for
upstart ? Since I can not find any /etc/event.d/tty* in my lenny box.
If it's only for upstart, both debian and ubuntu should use the same
files, right ? Therefore in 25configure_init,
-------------------------
if [ "/root/etc/event.d/tty*" != "$(echo /root/etc/event.d/tty*)" ]
then
for f in /root/etc/event.d/tty*
do
sed -i -e "s|^exec.*|exec
/bin/login -f ${USERNAME} </dev/$(basename ${f}) > /dev/$(basename ${f})
2>\&1|" ${f}
done
fi
fi
-------------------------
Will this break Debian ?
Thanks in advance.
Steven.
> Steven Shiau wrote:
>> 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}
>
> that's true for ubuntu, but would break debian systems. live-initramfs
> does not support ubuntu. if you want to get this fixed, ask ubuntu guys
> to apply your patch to the live-initramfs package in ubuntu, or use
> casper in ubuntu.
>
> --
> Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
> Email: daniel.baumann at panthera-systems.net
> Internet: http://people.panthera-systems.net/~daniel-baumann/
--
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: 9762755A
Fingerprint -- A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
Reply to: