slackware-current/source/installer/sources/initrd/sbin/mkbindmounts
Patrick J Volkerding 7e558f163d Sun Jul 9 18:35:37 UTC 2023
ap/qpdf-11.5.0-x86_64-1.txz:  Upgraded.
kde/kid3-3.9.4-x86_64-1.txz:  Upgraded.
l/harfbuzz-8.0.0-x86_64-1.txz:  Upgraded.
l/xapian-core-1.4.23-x86_64-1.txz:  Upgraded.
n/gpgme-1.21.0-x86_64-1.txz:  Upgraded.
2023-07-09 20:58:07 +02:00

10 lines
353 B
Bash
Executable file

#!/bin/bash
# Create bind mounts from / to /mnt for /dev/, /proc, and /sys.
# This may be useful for chrooting to a system partition mounted
# on /mnt (for example to run mkinitrd_command_generator.sh or to
# reinstall boot loaders).
mkdir -p /mnt/{dev,proc,sys}
mount -o rbind /dev /mnt/dev
mount -o rbind /proc /mnt/proc
mount -o rbind /sys /mnt/sys