Bug 27698 - /sbin/init-bottom:nfs_slice() не работает
Summary: /sbin/init-bottom:nfs_slice() не работает
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: make-initrd-propagator (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Anton V. Boyarshinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-03 20:20 MSK by Denis Pynkin
Modified: 2012-09-05 11:42 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)