mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-19 01:35:24 +01:00
Use existing mounts in sysc when available
This would be the case when bubblewrap is used for sandboxing the bootstrap.
This commit is contained in:
parent
940d4003f2
commit
8054f60a3c
1 changed files with 4 additions and 4 deletions
|
|
@ -18,11 +18,11 @@ create_fhs() {
|
||||||
for d in bin lib sbin; do
|
for d in bin lib sbin; do
|
||||||
ln -s "usr/${d}" "/${d}"
|
ln -s "usr/${d}" "/${d}"
|
||||||
done
|
done
|
||||||
mkdir -p /etc /proc /run /sys /tmp /var
|
mkdir -p /etc /run /var
|
||||||
mount -t proc proc /proc
|
test -d /proc || (mkdir /proc && mount -t proc proc /proc)
|
||||||
mount -t sysfs sysfs /sys
|
test -d /sys || (mkdir /sys && mount -t sysfs sysfs /sys)
|
||||||
# Make /tmp a ramdisk (speeds up configure etc significantly)
|
# Make /tmp a ramdisk (speeds up configure etc significantly)
|
||||||
mount -t tmpfs tmpfs /tmp
|
test -d /tmp || (mkdir /tmp && mount -t tmpfs tmpfs /tmp)
|
||||||
}
|
}
|
||||||
|
|
||||||
populate_device_nodes ""
|
populate_device_nodes ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue