[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#504381: rootskel: noshell boot option for unattended installations

Package: rootskel
Version: 1.69
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch jaunty

Timo Aaltonen, an Ubuntu developer, uploaded the attached patch to
Ubuntu's rootskel package. I think it's reasonable and worthwhile. Any
objections (post-lenny of course)?

  * init: Add support for disabling the shells on tty2 and tty3 by
    specifying a 'noshell' option on the kernel cmdline. Useful for
    unattended installations in a public place.

Colin Watson                                       [cjwatson@ubuntu.com]
diff -Nru rootskel-1.69/src/init rootskel-1.69/src/init
--- rootskel-1.69/src/init	2008-09-14 20:30:02.000000000 +0100
+++ rootskel-1.69/src/init	2008-11-03 08:23:47.000000000 +0000
@@ -14,6 +14,9 @@
+		noshell)
+			sed -i '/^tty2\|^tty3/s/^tty/\#tty/' /etc/inittab
+			;;
 debugshell "before init"

Reply to: