xbps-base-files: more fixes for the initramfs-tools trigger.
Test /proc/filesystems and /sys/kernel/vmcoreinfo to know if /proc and /sys are mounted, as the former was required for mountinfo. This finally works while installing a package with and without rootdir. Bump revision. --HG-- extra : convert_revision : df009b5088c47931d7ae82af2c4f7dad9af5337f
This commit is contained in:
@@ -32,11 +32,12 @@ run)
|
||||
initramfs_cmd="$initramfs_cmd -u -k $4"
|
||||
fi
|
||||
|
||||
if ! /lib/rc/bin/mountinfo -q /proc; then
|
||||
if [ ! -e /proc/filesystems ]; then
|
||||
mount -t proc proc /proc
|
||||
proc_mounted=1
|
||||
fi
|
||||
if ! /lib/rc/bin/mountinfo -q /sys; then
|
||||
|
||||
if [ ! -e /sys/kernel/vmcoreinfo ]; then
|
||||
mount -t sysfs sysfs /sys
|
||||
sys_mounted=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user