Daniel Kahn Gillmor
2007-Apr-18 21:24 UTC
[Pkg-xen-devel] Bug#395305: /etc/init.d/xendomains parseln() and long domU names
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This tripped me up recently too, but i found i needed a different patch: 0 aesop:~# diff -u /etc/init.d/xendomains{.orig,} - --- /etc/init.d/xendomains.orig 2007-04-18 12:04:04.000000000 -0400 +++ /etc/init.d/xendomains 2007-04-18 13:00:28.000000000 -0400 @@ -128,9 +128,9 @@ parseln() { - - name=`echo "$1" | cut -c0-17` + name=`echo $1 | cut -d\ -f1` name=${name%% *} - - rest=`echo "$1" | cut -c18- ` + rest=`echo $1 | cut -d\ -f2-` read id mem cpu vcpu state tm < <(echo "$rest") } 1 aesop:~# note that i stripped out the quotes around $1, which lets echo dispose of runs of contiguous spaces. once the contiguous spaces are collapsed, cutting fieldwise works fine. --dkg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/> iD8DBQFGJoxNiXTlFKVLY2URAtjdAJ0RCY/IIiQohAHIsZ3pZSNX1bNQLgCdEvM3 iuxVRTs3AeGcg/odotkZ8u4=Mh08 -----END PGP SIGNATURE-----
Reasonably Related Threads
- Bug#414294: xen-utils-common: /etc/init.d/xendomains fail to save domains with "long" names
- Bug#395305: (no subject)
- Error in /etc/init.d/xendomains if using option XEN_DOMAINS_AUTO_ONLY=true - saving of the domains always fails / shutdown is called
- Error in /etc/init.d/xendomains if using option XEN_DOMAINS_AUTO_ONLY=true - saving of the domains always fails / shutdown is called
- Xendomains always broken for me, nobody else?