From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O0EUr-00047G-Sk for mharc-grub-devel@gnu.org; Fri, 09 Apr 2010 09:43:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0EUp-000461-Ex for grub-devel@gnu.org; Fri, 09 Apr 2010 09:43:43 -0400 Received: from [140.186.70.92] (port=39018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0EUm-000459-S5 for grub-devel@gnu.org; Fri, 09 Apr 2010 09:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0EUl-0007KC-6i for grub-devel@gnu.org; Fri, 09 Apr 2010 09:43:40 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:37023) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0EUk-0007Jr-Tc for grub-devel@gnu.org; Fri, 09 Apr 2010 09:43:39 -0400 Received: by bwz23 with SMTP id 23so2660954bwz.26 for ; Fri, 09 Apr 2010 06:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=esHLZorqxCUrk+uKY7U0WmbTSSxlaRjVnEyDKpruvSQ=; b=C+IWGz2gkZvLcjEJ41wJD0Gu/GW0o6O0kxvF4U2pQUO4kpbesUZHhrr2KCYKgwma6j i03yVD5C5Gxyg0lxcVwPydZKZm/NWdnLrZWuMznu+93N9ivgTeXEXPzTPQuCOiEwRnTQ 8bN94z0Q7BUGJ0vvzvWrpbbOwQBT0o+ZMESxA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=rtZ0SUPpQgiDNJOkUH906ZtzgLJ5gnbm0TDIBu0x/3CyfOmxj+BZz5omEhv2KeCnVh vDzXaLwQ4KnreFOCCB3K5hDtX9/qZR5B9aYPg9dTSAZShsGHwo9RgVswnLhcDiB5VpNA rR9uzZOY+0w9c77Um3VRydFu2eubDiOM7wT8o= Received: by 10.204.151.71 with SMTP id b7mr99588bkw.114.1270820616254; Fri, 09 Apr 2010 06:43:36 -0700 (PDT) Received: from debian.bg45.phnet (125-149.203-62.cust.bluewin.ch [62.203.149.125]) by mx.google.com with ESMTPS id 15sm526450bwz.8.2010.04.09.06.43.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Apr 2010 06:43:34 -0700 (PDT) Message-ID: <4BBF2EFD.3080907@gmail.com> Date: Fri, 09 Apr 2010 15:43:25 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig390BB78A49068787F4EB5B9D" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Testcase for checking lvm module X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 13:43:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig390BB78A49068787F4EB5B9D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable BVK Chaitanya wrote: > Hi, > > > Attached patch adds a testcase to check for GRUB's lvm module > functionality. It configures lvm volumes on-the-fly on temporary disk > images, and tests to see whether grub-shell ls command identifies them > or not. > > Since all of the LVM operations need root privilege, this real test is > performed only when it is executed as root (or sudo make check); test > simply passes otherwise. In future we may add sudo-check Makefile > target to execute these type of tests automatically sing "sudo" > feature. > > =20 Using sudo in any of the grub scripts isn't an option. Would you like the programs you install silently acquiring root rights? At the limited we can make a priviliged-tests target which user will execute like: sudo make privelegied-tests Or we can make a script generate-gnu-linux-images.sh which will create all filesystem and lvm images needing root privelgies. This will also make repeated make check faster But it's way better to avoid needing root privelegies in the first place. In particular operations with images shouldn't need root privelegies. Have you looked into fakeroot program? > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig390BB78A49068787F4EB5B9D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAku/LwQACgkQNak7dOguQgmH8AD8DL0a4AJ9yB28WVR5dCNyKc2Z OqsSIIxVeRLdVAp/+HEBAJVFRNLVE/YUybk5rPSPV13VIzqK0Rn2j3+eXvbnFW+h =ZyEh -----END PGP SIGNATURE----- --------------enig390BB78A49068787F4EB5B9D--