mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
installer: adding mkdir command for the setcap-wrappers dir
This commit is contained in:
parent
b3d63f8191
commit
00dc2c559c
1 changed files with 2 additions and 0 deletions
|
@ -92,12 +92,14 @@ fi
|
||||||
mkdir -m 0755 -p $mountPoint/dev $mountPoint/proc $mountPoint/sys $mountPoint/etc $mountPoint/run $mountPoint/home
|
mkdir -m 0755 -p $mountPoint/dev $mountPoint/proc $mountPoint/sys $mountPoint/etc $mountPoint/run $mountPoint/home
|
||||||
mkdir -m 01777 -p $mountPoint/tmp
|
mkdir -m 01777 -p $mountPoint/tmp
|
||||||
mkdir -m 0755 -p $mountPoint/tmp/root
|
mkdir -m 0755 -p $mountPoint/tmp/root
|
||||||
|
mkdir -m 0755 -p $mountPoint/var/permissions-wrappers
|
||||||
mkdir -m 0700 -p $mountPoint/root
|
mkdir -m 0700 -p $mountPoint/root
|
||||||
mount --rbind /dev $mountPoint/dev
|
mount --rbind /dev $mountPoint/dev
|
||||||
mount --rbind /proc $mountPoint/proc
|
mount --rbind /proc $mountPoint/proc
|
||||||
mount --rbind /sys $mountPoint/sys
|
mount --rbind /sys $mountPoint/sys
|
||||||
mount --rbind / $mountPoint/tmp/root
|
mount --rbind / $mountPoint/tmp/root
|
||||||
mount -t tmpfs -o "mode=0755" none $mountPoint/run
|
mount -t tmpfs -o "mode=0755" none $mountPoint/run
|
||||||
|
mount -t tmpfs -o "mode=0755" none $mountPoint/var/permissions-wrappers
|
||||||
rm -rf $mountPoint/var/run
|
rm -rf $mountPoint/var/run
|
||||||
ln -s /run $mountPoint/var/run
|
ln -s /run $mountPoint/var/run
|
||||||
for f in /etc/resolv.conf /etc/hosts; do rm -f $mountPoint/$f; [ -f "$f" ] && cp -Lf $f $mountPoint/etc/; done
|
for f in /etc/resolv.conf /etc/hosts; do rm -f $mountPoint/$f; [ -f "$f" ] && cp -Lf $f $mountPoint/etc/; done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue