Menu

#371 regex bug in boot-local-efi.cfg

open
nobody
None
5
2021-12-14
2021-11-16
Sung Cho
No

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).

Discussion

  • Sung Cho

    Sung Cho - 2021-11-16

    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
  • Steven Shiau

    Steven Shiau - 2021-11-20

    Thanks for identifying this issue. We will try to fix this recently.

    Steven

     
  • Sung Cho

    Sung Cho - 2021-11-20

    Happy to help. Thank you.

     
  • Steven Shiau

    Steven Shiau - 2021-12-12

    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

     
  • Sung Cho

    Sung Cho - 2021-12-12

    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.

     
    👍
    1
  • Steven Shiau

    Steven Shiau - 2021-12-14

    Great. Thanks for confirming that.

    Steven

     

Log in to post a comment.