[Bug 1955671] Re: support for rocky linux UEFI

2022-02-25 Thread Francesco Santagata
Thanks @Dan,

21.3-14 tested:

Bios VM with rocky 8.4 OK
UEFI VM with rocky 8.4 OK
UEFI Dell R6525 with rocky 8.4 OK.

Minor Issue, at boot time it tests a lot of efi files before finding the right 
one...
The first time is really slow, then the "scan" goes much faster.

I have a screen capture of it.

Thanks.

BR
Francesco

** Attachment added: "uefi boot looking for a lot of files"
   
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+attachment/5563675/+files/slowboot.jpeg

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-22 Thread Dan Bungert
Sure thing Francesco, I have uploaded a Focal build to the PPA.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-22 Thread Francesco Santagata
@Dan, Sorry for being so late... Just noticed that the package is
available only for Jammy, will it be possible to have available for
Focal too ? Still using Focal...

BR
Francesco

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-16 Thread Adam Collard
** Changed in: curtin (Ubuntu)
   Status: New => Incomplete

** Changed in: curtin (Ubuntu)
   Status: Incomplete => In Progress

** Also affects: curtin
   Importance: Undecided
   Status: New

** Changed in: curtin
   Status: New => In Progress

** Changed in: curtin
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-15 Thread Dan Bungert
@Francesco Just so you know, the build I provided should just be the
same as Dimitri provided, but already patched.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-15 Thread Francesco Santagata
Hi,

I patched distro.py inside this one curtin package:

https://launchpad.net/~dbungert/+archive/ubuntu/curtin-lp-1955671

It's working.

I tested on two VMs (1 Bios + 1 UEFI).

With this "https://launchpad.net/~dbungert/+archive/ubuntu/curtin-lp-1955671";
BIOS Centos 8.4 OK, Rocky 8.4 OK
UEFI Centos 8.4 OK, Rocky 8.4 KO

With your latest patch of distro.py Rocky 8.4 on UEFI is working.

Minor Issue, at boot time it tests a lot of efi files before finding the right 
one...
The first time is really slow, then the "scan" goes much faster.

I have a screen capture of it.

BR
Francesco

PS
please let me know if you need a more clean test... got some problems with 
"git+ssh" a lost a little bit of focus.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-15 Thread Francesco Santagata
@Dan I already tested a rough patch in you package 21.3-5.

It seems to work, only minor issued during boot, I attach a
screencapture.

Tomorrow I'll test the 21.3-14.

BR
Francesco


** Attachment added: "uefi boot looking for a lot of files"
   
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+attachment/5561037/+files/uefi.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-15 Thread Dan Bungert
@Francesco -

I've got a new test build out at
https://launchpad.net/~dbungert/+archive/ubuntu/curtin-lp-1955671 - are
you able to retry?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-15 Thread Dimitri John Ledkov
Made an untested merge-proposal linked, please test.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-15 Thread Launchpad Bug Tracker
** Merge proposal linked:
   https://code.launchpad.net/~xnox/curtin/+git/curtin/+merge/415604

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-02-15 Thread Dimitri John Ledkov
Command: ['unshare', '--fork', '--pid', '--', 'chroot',
'/tmp/tmpqkhzgamy/target', 'grub2-mkconfig', '-o',
'/boot/efi/EFI/redhat/grub.cfg']

does not look correct, given that rocky edition of grub2 ships:

/boot/efi/EFI/rocky/grub.cfg
/boot/efi/EFI/rocky/grubenv
/boot/efi/EFI/rocky/grubx64.efi
/boot/grub2/grubenv
/boot/loader/entries
/etc/grub2-efi.cfg

and so on.

So i think when rocky is detected /rocky/ should be used instead of
/redhat/.

Or maybe even a /*/ glob, or a set of allowed patterns? Given how many
different operating systems there are that use the same installation
methods in curtin. I.e. rhel, centos, fedora, rocky, etc.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-01-25 Thread Francesco Santagata
@Dan, any news on this ?
I'm, starting with a load of bare metal and still have to go with centos 8.4 ...

BR
Francesco

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-01-10 Thread Francesco Santagata
Full curtin log

** Attachment added: "Full curtin log"
   
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+attachment/5553001/+files/c10n2.fu.priv-curtin-2022-01-10.tar

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-01-10 Thread Francesco Santagata
Hi,

just tested right now.

It seems it doesn't work...

curtin: Installation started. (21.3-5-g5ae173be-0ubuntu1)
start: cmd-install/stage-partitioning/builtin/cmd-block-meta: curtin command 
block-meta

[...]


finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/install-grub: FAIL: 
installing grub to target devices
finish: 
cmd-install/stage-curthooks/builtin/cmd-curthooks/configuring-bootloader: FAIL: 
configuring target system bootloader
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin 
command curthooks
Traceback (most recent call last):
  File "/curtin/curtin/commands/main.py", line 202, in main
ret = args.func(args)
  File "/curtin/curtin/commands/curthooks.py", line 1886, in curthooks
builtin_curthooks(cfg, target, state)
  File "/curtin/curtin/commands/curthooks.py", line 1851, in 
builtin_curthooks
setup_grub(cfg, target, osfamily=osfamily,
  File "/curtin/curtin/commands/curthooks.py", line 804, in setup_grub
install_grub(instdevs, target, uefi=uefi_bootable, grubcfg=grubcfg)
  File "/curtin/curtin/commands/install_grub.py", line 398, in 
install_grub
in_chroot.subp(cmd, env=env, capture=True)
  File "/curtin/curtin/util.py", line 780, in subp
return subp(*args, **kwargs)
  File "/curtin/curtin/util.py", line 275, in subp
return _subp(*args, **kwargs)
  File "/curtin/curtin/util.py", line 139, in _subp
raise ProcessExecutionError(stdout=out, stderr=err,
curtin.util.ProcessExecutionError: Unexpected error while running 
command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', 
'/tmp/tmps9fpka1f/target', 'grub2-mkconfig', '-o', 
'/boot/efi/EFI/redhat/grub.cfg']
Exit code: 1
Reason: -
Stdout: ''
Stderr: /usr/sbin/grub2-mkconfig: line 274: 
/boot/efi/EFI/redhat/grub.cfg.new: No such file or directory

Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', 
'/tmp/tmps9fpka1f/target', 'grub2-mkconfig', '-o', 
'/boot/efi/EFI/redhat/grub.cfg']
Exit code: 1
Reason: -
Stdout: ''
Stderr: /usr/sbin/grub2-mkconfig: line 274: 
/boot/efi/EFI/redhat/grub.cfg.new: No such file or directory


Stderr: ''

It seems like it's still recognise the OS as redhat...

BR
Francesco

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-01-10 Thread Francesco Santagata
PS,

I've been on holidays, this test takes 20 minutes to me, not a week.

Cheers

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1955671] Re: support for rocky linux UEFI

2022-01-04 Thread Dan Bungert
@Francesco - Thanks for testing the work so far.  I'm still not really
setup for meaningful rockylinux test but I think the fix for this one is
straightforward.

I've got a test build out at
https://launchpad.net/~dbungert/+archive/ubuntu/curtin-lp-1955671 -
would you be able to confirm that this helps?

It's entirely possible that when testing this you get past the current
problem and find another, feel free to list that here.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955671

Title:
  support for rocky linux UEFI

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1955671/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs