~ubuntu-branches/ubuntu/precise/rootskel/precise-proposed

« back to all changes in this revision

Viewing changes to src/sbin/init

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-11-03 12:24:43 UTC
  • Revision ID: james.westby@ubuntu.com-20081103122443-lme09je0e1gvgbhw
Tags: 1.69ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Provide the ability to choose a remote logging host and port if
    specified on the kernel command line.
  - 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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
cp -a $(ls -1 / | grep -v '\(lost+found\|mnt\|proc\)') /mnt
20
20
cd /mnt
21
21
pivot_root . initrd
22
 
mkdir proc
23
 
if [ -x /sbin/udevd ]; then
24
 
        /lib/debian-installer/init-udev-devices
25
 
elif [ -d /lib/userdevfs/ ]; then
26
 
        :
27
 
else
28
 
        echo "udev is missing. Giving up!" >&2
29
 
        sleep 5000
30
 
        exit
31
 
fi
 
22
mkdir -p /proc
32
23
mount /proc
 
24
mkdir -p /sys
 
25
mount /sys
 
26
/lib/debian-installer/start-udev
33
27
 
34
28
# Close all open files on the initrd, and run busybox init.
35
29
debugshell "before init"