aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2016-02-10 11:54:02 -0500
committerKylie McClain <somasis@exherbo.org>2016-02-11 01:08:34 -0500
commit9ffa03727ed3057301d48c95d472642683eb389a (patch)
treef087e6c6444c039fea347374770125a7ebeee27c
parente854dc758c5ea503a3d3b6193490385e7d16fa7c (diff)
downloadlighter-9ffa03727ed3057301d48c95d472642683eb389a.tar.gz
lighter-9ffa03727ed3057301d48c95d472642683eb389a.tar.xz
lighter-9ffa03727ed3057301d48c95d472642683eb389a.zip
don't make any files with /init
-rwxr-xr-xskel/init4
-rw-r--r--skel/proc/mounts0
-rw-r--r--skel/sys/.keep0
3 files changed, 0 insertions, 4 deletions
diff --git a/skel/init b/skel/init
index fef50fc..4d86681 100755
--- a/skel/init
+++ b/skel/init
@@ -1,6 +1,5 @@
#!/bin/sh
-mkdir /proc /sys
touch /proc/mounts
mount -t proc proc /proc
mount -t devtmpfs devtmpfs /dev
@@ -24,9 +23,6 @@ if [ -z "$root" ];then
root=$(blkid -o full -s 'TYPE' | grep -v "vfat" | cut -d: -f1)
fi
-mkdir /mnt
-mkdir /mnt/root
-
fsck -p /mnt/root || rescue
mount -o ro $(findfs "$root") /mnt/root || rescue
diff --git a/skel/proc/mounts b/skel/proc/mounts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/skel/proc/mounts
diff --git a/skel/sys/.keep b/skel/sys/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/skel/sys/.keep