Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] util-linux 2.21 and inittab update in FINAL

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Thomas Orgis <thomas-forum AT orgis.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] util-linux 2.21 and inittab update in FINAL
  • Date: Sat, 21 Apr 2012 08:36:55 +0200

Hi,

I just got bitten by an util-linux update breaking my login. Seems like this
is http://www.sourcemage.org/issues/110 and there is code in FINAL dealing
with this:

if [ "${VERSION:0:4}" == "2.20" ] && [ "${OLD_SPELL_VERSION:0:4}" == "2.19"
]; then
message "New version of util-linux needs to update /etc/inittab ..." &&
cp $INSTALL_ROOT/etc/inittab $INSTALL_ROOT/etc/inittab-$(date
+'%Y%m%d%H%M') &&
sed -i "s:/dev/tty:tty:" $INSTALL_ROOT/etc/inittab &&
message "Updated"
fi &&

Now, of course I broke this by doing the update too late, jumping from 2.19
to 2.21. So I have two questions about this:

1. Was the intention to delete the FINAL code when updating to 2.21? Because
now it is dead meat right there.
2. I don't really like the sed line there ... it doesn't check if there is
actually agetty in the line it works on. There are other getty programs.

So ... what's the intention here? Just remove the code as the update to 2.20
is history?


Alrighty then,

Thomas


PS: I want to add that I really, really am angry at util-linux folks for not
just supporting /dev paths anyway. What's so hard about this?

Attachment: signature.asc
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page