[scripts] create /proc and /dev/pts if they don't exist in source chroots
This commit is contained in:
parent
1c10161806
commit
9583ba9b22
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user