diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2011-12-08 16:10:42 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2011-12-09 08:29:47 +0000 |
commit | a3524bb914629fe0266aa261db41893e7d5122a0 (patch) | |
tree | cc2b0dc406a688e5cffcd0952835cf707899b51e /fhs-dirs.morph | |
parent | fe9a6ed7c27131aca7080f5a6233e3862ab0971a (diff) | |
download | fhs-dirs-a3524bb914629fe0266aa261db41893e7d5122a0.tar.gz |
Add terminal login support
Add more nodes to /dev and passwd,group,inittab to /etc
add rcS, which mounts the contents of fstab
Make the contents of fstab mount on startup
This manually creates some device nodes that are needed for serial and
virtual terminals, as well as the user and group information so that it
is possible to log in as root.
It may be more appropriate to create a new morph, as this is not strictly
the fhs-dirs hierarchy, but at this stage that would require a new
repository and the alteration of foundation to require that morph.
Diffstat (limited to 'fhs-dirs.morph')
-rw-r--r-- | fhs-dirs.morph | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fhs-dirs.morph b/fhs-dirs.morph index 792da16..99a9b87 100644 --- a/fhs-dirs.morph +++ b/fhs-dirs.morph @@ -4,8 +4,12 @@ "decription": "create the FHS 2.3 directory hierarchy (bootstrap edition)", "install-commands": [ "./create-fhs-dirs \"$DESTDIR\"", - "mknod -m 600 \"$DESTDIR/dev/console\" c 5 1", - "mknod -m 666 \"$DESTDIR/dev/null\" c 1 3", + "./create-dev-nodes \"$DESTDIR\"", + "install passwd \"$DESTDIR/etc/passwd\"", + "install inittab \"$DESTDIR/etc/inittab\"", + "install group \"$DESTDIR/etc/group\"", + "install -d \"$DESTDIR/etc/init.d\"", + "install -m 744 rcS \"$DESTDIR/etc/init.d/rcS\"", "echo baserock > \"$DESTDIR\"/etc/hostname" ] } |