mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
20 lines
323 B
Plaintext
20 lines
323 B
Plaintext
|
|
# Paramter: Where the root should be mounted
|
|
mountroot ()
|
|
{
|
|
run_scripts /scripts/nfs_top
|
|
|
|
ipconfig ${DEVICE}
|
|
. /tmp/net-${DEVICE}.conf
|
|
if [ "x${NFSROOT}" = "xauto" ]; then
|
|
NFSROOT=${ROOTSERVER}:${ROOTPATH}
|
|
fi
|
|
|
|
run_scripts /scripts/nfs_premount
|
|
|
|
nfsmount ${NFSROOT} ${rootmnt}
|
|
|
|
run_scripts /scripts/nfs_bottom
|
|
|
|
}
|