All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit f2416f61 authored by Ryan Jackson's avatar Ryan Jackson

Create critical system directories at build-time

Create critical system directories (like /var/log, /var/lock, /tmp)
at build time instead of assuming they're checked in to version
control.  Some VCSs handle empty directories, some don't (Git, for
example).
parent b8b8f4f9
......@@ -9,6 +9,7 @@ fi
chmod 1777 "$target_dir/tmp"
chmod 1777 "$target_dir/var/tmp"
chmod 1777 "$target_dir/var/lock"
chmod 0700 "$target_dir/root/.ssh"
chmod 0600 "$target_dir/root/.ssh/*"
chmod 0600 "$target_dir/etc/shadow"
......
......@@ -13,5 +13,10 @@ install:
cp -dpR $(TEMPLATE_PATH)/* $(TARGET_PATH)
find $(TARGET_PATH) -type d -name CVS | xargs rm -rf
mkdir -p $(TARGET_PATH)/root/.ssh
mkdir -p $(TARGET_PATH)/var/tmp
mkdir -p $(TARGET_PATH)/var/{tmp,log,lock,run,lib,state,cache,spool}
mkdir -p $(TARGET_PATH)/tmp
mkdir -p $(TARGET_PATH)/proc
mkdir -p $(TARGET_PATH)/sys
mkdir -p $(TARGET_PATH)/mnt
mkdir -p $(TARGET_PATH)/home
mkdir -p $(TARGET_PATH)/dev
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment