slackware-current/source/installer/sources/initrd/sbin/mkbindmounts
Patrick J Volkerding 30130016ee Mon Mar 11 18:29:55 UTC 2024
a/dialog-1.3_20240307-x86_64-1.txz:  Upgraded.
l/libpaper-2.2.3-x86_64-1.txz:  Upgraded.
l/libqalculate-5.0.0-x86_64-1.txz:  Upgraded.
l/pyparsing-3.1.2-x86_64-1.txz:  Upgraded.
l/python-packaging-24.0-x86_64-1.txz:  Upgraded.
n/openssh-9.7p1-x86_64-1.txz:  Upgraded.
  Future deprecation notice
  OpenSSH plans to remove support for the DSA signature algorithm in
  early 2025 and compile-time disable it later this year.
n/wget-1.24.5-x86_64-1.txz:  Upgraded.
x/iceauth-1.0.10-x86_64-1.txz:  Upgraded.
x/libXaw-1.0.16-x86_64-1.txz:  Upgraded.
xap/xaos-4.3.2-x86_64-1.txz:  Upgraded.
2024-03-11 19:59:19 +01:00

14 lines
510 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
# Needed for EFI boot menu operations:
if [ -d /sys/firmware/efi/efivars ]; then
mount -o rbind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
fi