regex bug in boot-local-efi.cfg
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
alternative_stable 20210817-hirsute
boot/grub/boot-local-efi.cfg line 48
regexp -s partition '((hd0,.*))' $dev
works only if $1 for scan_dev is like (hd0,...). But the auto_detect blob later in the file (where scan_dev is called) can call scan_dev (hd1,...), etc. if there are multiple drives found. So line 48 must be modified to something like
regexp -s partition '((hd.,.))' $dev
or
regexp -s partition '((hd\d,.))' $dev
i.e. literal 0 to . (any) or \d (digit).
Ran into this bug because hd0 was set to the the clonezilla live USB in my case, and hd1 was the local drive I was trying to boot.
Last edit: Sung Cho 2021-11-20
Thanks for identifying this issue. We will try to fix this recently.
Steven
Happy to help. Thank you.
Fixed and committed in git repository:
https://gitlab.com/stevenshiau/drbl/-/commit/3f1ff54e379c4962e93e5be3be5024b19c4348be
Will use that in the next testing release.
Thanks.
Steven
Please give Clonezilla live >= 2.8.1-5 or 20211206-* a try:
https://clonezilla.org/downloads.php
If you test it, please let us know the results.
Thanks.
Steven
Tested clonezilla-live-20211206-jammy-amd64.zip on the same computer as used for the ticket. Can confirm the local drive (hd1) boot menu option works out of the box.
Thank you.
Great. Thanks for confirming that.
Steven