[scripts] create /proc and /dev/pts if they don't exist in source chroots

This commit is contained in:
Fabio Erculiani 2011-09-05 07:42:26 +02:00
parent 1c10161806
commit 9583ba9b22
2 changed files with 22 additions and 0 deletions

View File

@ -1,5 +1,16 @@
#!/bin/bash
# create /proc if it doesn't exist
# rsync doesn't copy it
if [ ! -d "/proc" ]; then
mkdir /proc
touch /proc/.keep
fi
if [ ! -d "/dev/pts" ]; then
mkdir /dev/pts
touch /dev/pts/.keep
fi
# copy /root defaults from /etc/skel
rm -rf /root
cp /etc/skel /root -Rap

View File

@ -1,5 +1,16 @@
#!/bin/bash
# create /proc if it doesn't exist
# rsync doesn't copy it
if [ ! -d "/proc" ]; then
mkdir /proc
touch /proc/.keep
fi
if [ ! -d "/dev/pts" ]; then
mkdir /dev/pts
touch /dev/pts/.keep
fi
source /etc/profile
env-update
source /etc/profile