From 58518fd3603455b80e2b109c9d50be57fc9ea1c4 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 18 Apr 2024 10:24:21 +0200 Subject: [PATCH] add shell script to mount all rescue / chroot required paths --- mount-dev-sys-proc | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 mount-dev-sys-proc diff --git a/mount-dev-sys-proc b/mount-dev-sys-proc new file mode 100755 index 0000000..db57f88 --- /dev/null +++ b/mount-dev-sys-proc @@ -0,0 +1,8 @@ +#!/bin/sh + +dst=$1; shift + +for dir in /dev /proc /sys /sys/firmware/efi/efivars; do + mount --bind $dir ${dst}/${dir} + +done