diff options
author | Jeff Bailey <jbailey@ubuntu.com> | 2005-09-01 00:14:03 -0400 |
---|---|---|
committer | Jeff Bailey <jbailey@ubuntu.com> | 2005-09-01 00:14:03 -0400 |
commit | 841a533b3b11b4a41f2eb8e6849fbd4ace0217fb (patch) | |
tree | 670b53fd085a41b551751681f014229817f7f124 /init | |
parent | 7379c1bbf48cfa9df83dc7e92d169e2db37e3bc8 (diff) | |
download | initramfs-tools-841a533b3b11b4a41f2eb8e6849fbd4ace0217fb.tar.gz initramfs-tools-841a533b3b11b4a41f2eb8e6849fbd4ace0217fb.zip |
initramfs-tools (0.25) breezy; urgency=low
"If there was less sympathy in the world, there would be less
trouble in the world."
- Oscar Wilde
* init: Module the /dev tmpfs earlier. Make /dev/console, and
/dev/null on it at the beginning, just in case.
* debian/initramfs-tools.postinst: When copying the modules file over
from initrd-tools installations, filter out ext2, ext3, ide-generic
and ide-disk. These are leftovers from Warty.
(Ubuntu #14242)
* hooks/udev: New File (Ubuntu #12915)
* init: panic if ${init} doesn't exist on the target filesystem.
-- Jeff Bailey <jbailey@ubuntu.com> Thu, 1 Sep 2005 00:13:47 -0400
Diffstat (limited to 'init')
-rw-r--r-- | init | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -5,6 +5,10 @@ mkdir /proc mkdir /tmp mount -t sysfs sysfs /sys mount -t proc proc /proc +mount -t ramfs none /dev +touch /dev/.initramfs-tools +mknod /dev/console c 5 1 +mknod /dev/null c 1 3 . /conf/initramfs.conf . /scripts/functions @@ -61,8 +65,6 @@ log_end_msg # Populate /dev tree log_begin_msg "Initializing /dev" -mount -t ramfs none /dev -touch /dev/.initramfs-tools parse_numeric ${ROOT} udevstart log_end_msg @@ -93,5 +95,9 @@ mount -o move /dev /root/dev umount /sys umount /proc +if [ ! -x ${rootmnt}${init} ]; then + panic "Target filesystem doesn't have ${init}" +fi + # Chain to real filesystem exec run-init ${rootmnt} ${init} "$@" </root/dev/console >/root/dev/console |