Bug 27698 - /sbin/init-bottom:nfs_slice() не работает
: /sbin/init-bottom:nfs_slice() не работает
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/make-initrd-propagator)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2012-09-03 20:20 by
Modified: 2012-09-05 11:42 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2012-09-03 20:20:44
не определяет ip адрес сервера из-за отсутствия опции --numeric-ports

diff --git a/propagator/data/sbin/init-bottom
b/propagator/data/sbin/init-bottom
index b9559f7..0d98fdd 100755
--- a/propagator/data/sbin/init-bottom
+++ b/propagator/data/sbin/init-bottom
@@ -4,7 +4,7 @@ stage2=/root
 nfs_slice(){
 if grep -q 'automatic=method:nfs'  /proc/cmdline ; then
     # mount overlays from nfs 
-    ip=$(netstat -t --numeric-hosts | grep :2049 | head -n1 | \
+    ip=$(netstat -t --numeric-hosts --numeric-ports | grep :2049 | head -n1 |
\
         sed 's/  */ /g' | cut -d' ' -f5 | cut -d: -f1)
     mkdir -p $stage2/tmp/images
     if nfsmount -o nolock $ip:/srv/public/netinst/overlays-live
$stage2/tmp/images &> /dev/null ; then
------- Comment #1 From 2012-09-05 11:42:40 -------
make-initrd-propagator-0.10-alt1 -> sisyphus:

* Wed Sep 05 2012 Anton V. Boyarshinov <boyarsh@altlinux> 0.10-alt1
- added --numeric-ports option to netstat (dans@), (closes: #27698)