chroot.sh: add some missing files in /var/log.
--HG-- extra : convert_revision : 77cc4113c23fe9b00516261e12c0ae002e4831a4
This commit is contained in:
parent
32945c2e2f
commit
c464f084ed
1 changed files with 9 additions and 0 deletions
|
@ -54,9 +54,18 @@ prepare_chroot()
|
||||||
for f in lock log mail run spool opt cache lib; do
|
for f in lock log mail run spool opt cache lib; do
|
||||||
mkdir -p $XBPS_MASTERDIR/var/$f
|
mkdir -p $XBPS_MASTERDIR/var/$f
|
||||||
done
|
done
|
||||||
|
|
||||||
chown -R root:root $XBPS_MASTERDIR
|
chown -R root:root $XBPS_MASTERDIR
|
||||||
|
|
||||||
# Create some required files.
|
# Create some required files.
|
||||||
|
touch $XBPS_MASTERDIR/etc/mtab
|
||||||
|
for f in run/utmp log/btmp log/lastlog log/wtmp; do
|
||||||
|
touch -f $XBPS_MASTERDIR/var/$f
|
||||||
|
done
|
||||||
|
for f in run/utmp log/lastlog; do
|
||||||
|
chmod 644 $XBPS_MASTERDIR/var/$f
|
||||||
|
done
|
||||||
|
|
||||||
cat > $XBPS_MASTERDIR/etc/passwd <<_EOF
|
cat > $XBPS_MASTERDIR/etc/passwd <<_EOF
|
||||||
root:x:0:0:root:/root:/bin/bash
|
root:x:0:0:root:/root:/bin/bash
|
||||||
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
|
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
|
||||||
|
|
Loading…
Reference in a new issue