Linux/Tipps/Gentoo/Bugs: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Linux/Tipps/Gentoo/Bugs (Quelltext anzeigen)
Version vom 5. Dezember 2010, 23:04 Uhr
, 5. Dezember 2010→PXE mit NFS-Options in nfsroot und genkernel
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
Zeile 87: | Zeile 87: | ||
--- /usr/share/genkernel/defaults/initrd.scripts.orig 2009-06-14 18:17:51.000000000 +0200 | --- /usr/share/genkernel/defaults/initrd.scripts.orig 2009-06-14 18:17:51.000000000 +0200 | ||
+++ /usr/share/genkernel/defaults/initrd.scripts 2009-06-12 23:25:56.000000000 +0200 | +++ /usr/share/genkernel/defaults/initrd.scripts 2009-06-12 23:25:56.000000000 +0200 | ||
@@ -245,8 +245,14 @@ | |||
bad_msg "NFS Mounting failed. Is the path corrent ?" | |||
fi | |||
else | |||
- good_msg "Attempting to mount NFS root on ${NFSROOT}" | |||
- mount -t nfs -o ro,nolock,rsize=1024,wsize=1024 ${NFSROOT} ${NEW_ROOT} | |||
+ NFSOPTIONS=${NFSROOT#*,} | |||
+ NFSROOT=${NFSROOT%%,*} | |||
+ if [ "${NFSOPTIONS}" = "${NFSROOT}" ] | |||
+ then | |||
+ NFSOPTIONS="ro,nolock,rsize=1024,wsize=1024" | |||
+ fi | |||
+ good_msg "Attempting to mount NFS root on ${NFSROOT} with options ${NFSOPTIONS}" | |||
+ mount -t nfs -o ${NFSOPTIONS} ${NFSROOT} ${NEW_ROOT} | |||
if [ "$?" = '0' ] | |||
then | |||
REAL_ROOT="/dev/nfs" | |||
===Workaround für genkernel-3.4.10-907=== | |||
--- /usr/share/genkernel/defaults/initrd.scripts.orig 2010-12-05 17:25:19.000000000 +0100 | |||
+++ /usr/share/genkernel/defaults/initrd.scripts 2010-12-05 17:28:09.000000000 +0100 | |||
@@ -245,8 +245,14 @@ | @@ -245,8 +245,14 @@ | ||
bad_msg "NFS Mounting failed. Is the path corrent ?" | bad_msg "NFS Mounting failed. Is the path corrent ?" |