[Bug 747888] Re: casper script 25configure_init clobbers 22serialtty, serial console nearly unusable
Launchpad Bug Tracker
747888 at bugs.launchpad.net
Tue Oct 2 22:29:11 UTC 2012
This bug was fixed in the package casper - 1.326
---------------
casper (1.326) quantal; urgency=low
* 22desktop_settings:
- Rename 22screensaver to 22desktop_settings
- Move 22gnome_panel_data's content to 22desktop_settings
- Flush overrides in 22desktop_settings to avoid getting duplicate keys
when using persistence.
- Check for gsettings-desktop-schemas instead of gnome-panel-data
* 35fix_language_selector:
- Use sed against the original file (from rofs) instead of the target file.
This avoids another case where the change is re-applied at every boot
when using persistence.
* 25adduser:
- Remove RUNNING_UNDER_GDM from /etc/environment which was a big hack
for back when we still used xscreensaver and was getting appended with
every single boot.
- Use /etc/sudoers.d instead of appending to /etc/sudoers, avoid getting
duplicate lines with every reboot.
* 23networking:
- Change default /etc/network/interfaces to match that in /rofs, makes it
easier to diff /etc when debugging casper.
* casper-init, casper, 19-keyboard, casper-functions:
- Remove any remaining reference to usplash as it's been deprecated for a
long long time and just makes things harder to read.
* casper-update-initramfs:
- Exit when called from a non-writable media (cdrom) or when called from
ubiquity. This fixes a > 1 minute wait when clicking "Try Ubuntu".
* 19keyboard:
- Add code to detect that the keyboard layout changed from the previous
value and flush the gsettings key so that the indicator is properly
reset. (LP: #946406)
* 43disable_updateinitramfs:
- Don't try to chmod a dangling symlink.
- Only write /usr/sbin/update-initramfs if it doesn't already exist.
* postinst:
- Remove code generating symlink for /usr/sbin/update-initramfs to
/usr/share/casper/casper-update-iniramfs as the diversion and symlinking
is done in the initramfs and that code was only useful when the shim was
first introduced. (LP: #984276)
* scripts/casper:
- Allow specifying live-media on the command line, helps when booting
computers that are unable to boot a CD/USB disk. (LP: #423616)
- Fix NFSOPTS handling by adding the needed comma and sticking it to the
existing "ro" option of nfsmount (LP: #476208)
* 22serialtty:
- Move 22serialtty to 26serialtty to avoid overriding the newly generated
upstart jobs. Note that this will spawn getty instead of login, but
it's probably for the best as we need a specific baudrate. (LP: #747888)
-- Stephane Graber <stgraber at ubuntu.com> Tue, 02 Oct 2012 18:11:44 -0400
** Changed in: casper (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/747888
Title:
casper script 25configure_init clobbers 22serialtty, serial console
nearly unusable
Status in “casper” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: casper
I am creating a custom live ubuntu image which defaults to serial console redirection. When I boot the image using a serial console, the console becomes practically unusuable, a screen shot is attached. This is because /etc/init/ttyS0.conf has been overwritten (clobbered) by a casper helper script in the initrd:
initrd/scripts/casper-bottom/25configure_init
The clobbering comes from these lines:
for f in /root/etc/init/tty*; do
sed -i -e "s|^exec.*|exec env blah=blah /bin/login -f $USERNAME </dev/$(basename $f .conf) > /dev/$(basename $f .conf) 2>\&1|" $f
since both tty0 and ttyS0 match tty*.
The easiest solution is if you move casper-bottom/22serialtty to
casper-bottom/26serialtty, but this requires that the user set the
serialtty kernel option. Personally, I think this kernel option
"serialtty" is brilliant - it would be great if that were all you had
to set to get full serial console redirection (or maybe from
console=ttyS0,115200n8). But I read in the comments that serialtty is
just for development and not really for production.
So probably the best option is to modify 25configure_init with something like this:
for f in $(ls /root/etc/init/tty* |grep -E tty[[:digit:]]*); do
Thanks.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/747888/+subscriptions
More information about the foundations-bugs
mailing list