summaryrefslogtreecommitdiff
path: root/stage2-fhs-dirs.morph
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2013-02-08 16:20:20 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2013-03-11 16:04:03 +0000
commit558b9096338e80126e30730efc295d64c0a94707 (patch)
tree0e600c77a46eb7f3fd8f0865427277d96e72efdf /stage2-fhs-dirs.morph
parent268b374f02d93a5df6f8f21e62a46c82e700cd92 (diff)
downloadfhs-dirs-558b9096338e80126e30730efc295d64c0a94707.tar.gz
Add morphs for build-essential bootstrapbaserock/samthursfield/build-essential-2-rebase
JSON versions are generated from .yaml versions using the edit-morph script in the Morph source tree: 'scripts/edit-morph to-json *.morph.yaml' The .morph files themselves should be converted to YAML after the next Baserock release.
Diffstat (limited to 'stage2-fhs-dirs.morph')
-rw-r--r--stage2-fhs-dirs.morph65
1 files changed, 65 insertions, 0 deletions
diff --git a/stage2-fhs-dirs.morph b/stage2-fhs-dirs.morph
new file mode 100644
index 0000000..636f279
--- /dev/null
+++ b/stage2-fhs-dirs.morph
@@ -0,0 +1,65 @@
+{
+ "name": "stage2-fhs-dirs",
+ "kind": "chunk",
+ "decription": "create the FHS 2.3 directory hierarchy and the usual files",
+ "install-commands": [
+ "sh ./create-fhs-dirs \"$DESTDIR\"",
+ "rmdir \"$DESTDIR/bin\"",
+ "ln -s \"$PREFIX/bin\" \"$DESTDIR/bin\"",
+ "install -m 644 passwd \"$DESTDIR/etc/passwd\"",
+ "install -m 600 shadow \"$DESTDIR/etc/shadow\"",
+ "install -m 644 interfaces \"$DESTDIR/etc/network/interfaces\"",
+ "install -m 644 group \"$DESTDIR/etc/group\"",
+ "install -m 644 ld.so.conf \"$DESTDIR/etc/ld.so.conf\"",
+ "install -m 644 issue \"$DESTDIR/etc/issue\"",
+ "install -m 644 services \"$DESTDIR/etc/services\"",
+ "echo baserock > \"$DESTDIR\"/etc/hostname"
+ ],
+ "devices": [
+ {
+ "filename": "/dev/console",
+ "uid": 0,
+ "gid": 0,
+ "type": "c",
+ "major": 5,
+ "minor": 1,
+ "permissions": "0600"
+ },
+ {
+ "filename": "/dev/full",
+ "uid": 0,
+ "gid": 0,
+ "type": "c",
+ "major": 1,
+ "minor": 7,
+ "permissions": "0666"
+ },
+ {
+ "filename": "/dev/null",
+ "uid": 0,
+ "gid": 0,
+ "type": "c",
+ "major": 1,
+ "minor": 3,
+ "permissions": "0666"
+ },
+ {
+ "filename": "/dev/urandom",
+ "uid": 0,
+ "gid": 0,
+ "type": "c",
+ "major": 1,
+ "minor": 9,
+ "permissions": "0666"
+ },
+ {
+ "filename": "/dev/zero",
+ "uid": 0,
+ "gid": 0,
+ "type": "c",
+ "major": 1,
+ "minor": 5,
+ "permissions": "0666"
+ }
+ ]
+}