Re: [PATCH 05/23] test: py: add sudo for virt-make-fs

2024-04-16 Thread Raymond Mao
Hi Tom,

On Tue, 16 Apr 2024 at 15:19, Tom Rini  wrote:

> On Tue, Apr 16, 2024 at 12:00:01PM -0700, Raymond Mao wrote:
>
> > Fix a permission issue when running virt-make-fs
> >
> > Signed-off-by: Raymond Mao 
> > ---
> >  test/py/tests/test_efi_secboot/conftest.py | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Can you elaborate please? The point of virt-make-fs was, I could have
> sworn, is that it doesn't require privileges.
>
> We can drop this patch from v2. The privileges issue is due to my Ubuntu
host setup (missing the permissions to access /boot/vmlinuz-*).

Thanks and regards,
Raymond


Re: [PATCH 05/23] test: py: add sudo for virt-make-fs

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 12:00:01PM -0700, Raymond Mao wrote:

> Fix a permission issue when running virt-make-fs
> 
> Signed-off-by: Raymond Mao 
> ---
>  test/py/tests/test_efi_secboot/conftest.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Can you elaborate please? The point of virt-make-fs was, I could have
sworn, is that it doesn't require privileges.

-- 
Tom


signature.asc
Description: PGP signature


[PATCH 05/23] test: py: add sudo for virt-make-fs

2024-04-16 Thread Raymond Mao
Fix a permission issue when running virt-make-fs

Signed-off-by: Raymond Mao 
---
 test/py/tests/test_efi_secboot/conftest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/py/tests/test_efi_secboot/conftest.py 
b/test/py/tests/test_efi_secboot/conftest.py
index ff7ac7c810..30357913f0 100644
--- a/test/py/tests/test_efi_secboot/conftest.py
+++ b/test/py/tests/test_efi_secboot/conftest.py
@@ -113,7 +113,7 @@ def efi_boot_env(request, u_boot_config):
% (mnt_point, EFITOOLS_PATH),
shell=True)
 
-check_call('virt-make-fs --partition=gpt --size=+1M --type=vfat {} 
{}'.format(
+check_call('sudo virt-make-fs --partition=gpt --size=+1M --type=vfat 
{} {}'.format(
 mnt_point, image_path), shell=True)
 check_call('rm -rf {}'.format(mnt_point), shell=True)
 
@@ -232,7 +232,7 @@ def efi_boot_env_intca(request, u_boot_config):
 check_call('cd %s; cat TestSub.crt TestRoot.crt > TestSubRoot.crt; 
%ssbsign --key TestCert.key --cert TestCert.crt --addcert TestSubRoot.crt --out 
helloworld.efi.signed_abc helloworld.efi'
% (mnt_point, SBSIGN_PATH), shell=True)
 
-check_call('virt-make-fs --partition=gpt --size=+1M --type=vfat {} 
{}'.format(mnt_point, image_path), shell=True)
+check_call('sudo virt-make-fs --partition=gpt --size=+1M --type=vfat 
{} {}'.format(mnt_point, image_path), shell=True)
 check_call('rm -rf {}'.format(mnt_point), shell=True)
 
 except CalledProcessError as e:
-- 
2.25.1