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:
parent
08ba62ccdf
commit
931c03fae1
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-base-files'
|
# Template file for 'xbps-base-files'
|
||||||
pkgname=xbps-base-files
|
pkgname=xbps-base-files
|
||||||
version=0.15
|
version=0.16
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="xbps base system files"
|
short_desc="xbps base system files"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
|
@ -32,11 +32,12 @@ run)
|
||||||
initramfs_cmd="$initramfs_cmd -u -k $4"
|
initramfs_cmd="$initramfs_cmd -u -k $4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! /lib/rc/bin/mountinfo -q /proc; then
|
if [ ! -e /proc/filesystems ]; then
|
||||||
mount -t proc proc /proc
|
mount -t proc proc /proc
|
||||||
proc_mounted=1
|
proc_mounted=1
|
||||||
fi
|
fi
|
||||||
if ! /lib/rc/bin/mountinfo -q /sys; then
|
|
||||||
|
if [ ! -e /sys/kernel/vmcoreinfo ]; then
|
||||||
mount -t sysfs sysfs /sys
|
mount -t sysfs sysfs /sys
|
||||||
sys_mounted=1
|
sys_mounted=1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue