Bug 27698

Summary: /sbin/init-bottom:nfs_slice() не работает
Product: Sisyphus Reporter: Denis Pynkin <dans>
Component: make-initrd-propagatorAssignee: Anton V. Boyarshinov <boyarsh>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: boyarsh
Version: unstable   
Hardware: all   
OS: Linux   

Description Denis Pynkin 2012-09-03 20:20:44 MSK
не определяет 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 Repository Robot 2012-09-05 11:42:40 MSK
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)