initrd.scripts: move mount_sysfs to 00-fsdev.sh

master
Fabio Erculiani 12 years ago
parent fa87394a19
commit 547b54238a

@ -2,6 +2,12 @@
. /etc/initrd.d/00-common.sh . /etc/initrd.d/00-common.sh
mount_sysfs() {
mount -t sysfs sysfs /sys -o noexec,nosuid,nodev \
>/dev/null 2>&1 && return 0
bad_msg "Failed to mount /sys!"
}
find_real_device() { find_real_device() {
local device="${1}" local device="${1}"
local out= local out=

@ -33,12 +33,6 @@ bootstrap_key() {
media_find "key" "${keyloc}" "CRYPT_${1}_KEYDEV" "/mnt/key" ${KEYDEVS} media_find "key" "${keyloc}" "CRYPT_${1}_KEYDEV" "/mnt/key" ${KEYDEVS}
} }
mount_sysfs() {
mount -t sysfs sysfs /sys -o noexec,nosuid,nodev >/dev/null 2>&1
ret=$?
[ ${ret} -eq 0 ] || bad_msg "Failed to mount /sys!"
}
find_nfs() { find_nfs() {
if [ -z "${IP}" ]; then if [ -z "${IP}" ]; then
# IP is not set, return straight away # IP is not set, return straight away

Loading…
Cancel
Save