aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2017-08-02 00:52:21 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-08-02 20:04:29 +0200
commit76fc9275f14ec295b0125910464969bfa7441b85 (patch)
tree2ff9d3a788256020883eab633e7458d9f594b5c2 /system
parentc0fd0ac6558f976dcb58e92969df4925a83198b5 (diff)
downloadbuildroot-76fc9275f14ec295b0125910464969bfa7441b85.tar.gz
buildroot-76fc9275f14ec295b0125910464969bfa7441b85.tar.bz2
system: separate sysv and systemd parts of the skeleton
For systemd, we create a simple /etc/fstab with only an entry for /, as systemd otherwise automatically mounts what it needs where it needs it. systemd does not like that the content of /var be symlinks to /tmp, especially journald that starts before /tmp is mounted, and thus the journal files are hidden from view, which causes quite a bit of fuss... Instead, move the current /var to a sysv-only skeleton. systemd at install time will create the /var content it needs, so we just create an empty /var for systemd. systemd would create /home and /srv at runtime if they are missing, but it is better to create them right now, to simplify supporting systemd on a RO filesystem in the (near) future. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'system')
-rw-r--r--system/skeleton/dev/.empty (renamed from system/skeleton/dev/pts/.empty)0
l---------system/skeleton/dev/log1
-rw-r--r--system/skeleton/dev/shm/.empty0
-rw-r--r--system/skeleton/etc/fstab8
l---------system/skeleton/var/cache1
l---------system/skeleton/var/lib/misc1
l---------system/skeleton/var/lock1
l---------system/skeleton/var/log1
l---------system/skeleton/var/run1
l---------system/skeleton/var/spool1
l---------system/skeleton/var/tmp1
11 files changed, 0 insertions, 16 deletions
diff --git a/system/skeleton/dev/pts/.empty b/system/skeleton/dev/.empty
index e69de29bb2..e69de29bb2 100644
--- a/system/skeleton/dev/pts/.empty
+++ b/system/skeleton/dev/.empty
diff --git a/system/skeleton/dev/log b/system/skeleton/dev/log
deleted file mode 120000
index d96b3b1cb8..0000000000
--- a/system/skeleton/dev/log
+++ /dev/null
@@ -1 +0,0 @@
-../tmp/log \ No newline at end of file
diff --git a/system/skeleton/dev/shm/.empty b/system/skeleton/dev/shm/.empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/system/skeleton/dev/shm/.empty
+++ /dev/null
diff --git a/system/skeleton/etc/fstab b/system/skeleton/etc/fstab
deleted file mode 100644
index 169054b74f..0000000000
--- a/system/skeleton/etc/fstab
+++ /dev/null
@@ -1,8 +0,0 @@
-# <file system> <mount pt> <type> <options> <dump> <pass>
-/dev/root / ext2 rw,noauto 0 1
-proc /proc proc defaults 0 0
-devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0
-tmpfs /dev/shm tmpfs mode=0777 0 0
-tmpfs /tmp tmpfs mode=1777 0 0
-tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
-sysfs /sys sysfs defaults 0 0
diff --git a/system/skeleton/var/cache b/system/skeleton/var/cache
deleted file mode 120000
index 1431b0e432..0000000000
--- a/system/skeleton/var/cache
+++ /dev/null
@@ -1 +0,0 @@
-../tmp \ No newline at end of file
diff --git a/system/skeleton/var/lib/misc b/system/skeleton/var/lib/misc
deleted file mode 120000
index f1fde8c107..0000000000
--- a/system/skeleton/var/lib/misc
+++ /dev/null
@@ -1 +0,0 @@
-../../tmp \ No newline at end of file
diff --git a/system/skeleton/var/lock b/system/skeleton/var/lock
deleted file mode 120000
index 1431b0e432..0000000000
--- a/system/skeleton/var/lock
+++ /dev/null
@@ -1 +0,0 @@
-../tmp \ No newline at end of file
diff --git a/system/skeleton/var/log b/system/skeleton/var/log
deleted file mode 120000
index 1431b0e432..0000000000
--- a/system/skeleton/var/log
+++ /dev/null
@@ -1 +0,0 @@
-../tmp \ No newline at end of file
diff --git a/system/skeleton/var/run b/system/skeleton/var/run
deleted file mode 120000
index 84ba55b912..0000000000
--- a/system/skeleton/var/run
+++ /dev/null
@@ -1 +0,0 @@
-../run \ No newline at end of file
diff --git a/system/skeleton/var/spool b/system/skeleton/var/spool
deleted file mode 120000
index 1431b0e432..0000000000
--- a/system/skeleton/var/spool
+++ /dev/null
@@ -1 +0,0 @@
-../tmp \ No newline at end of file
diff --git a/system/skeleton/var/tmp b/system/skeleton/var/tmp
deleted file mode 120000
index 1431b0e432..0000000000
--- a/system/skeleton/var/tmp
+++ /dev/null
@@ -1 +0,0 @@
-../tmp \ No newline at end of file