… | |
… | |
24 | our $VERSION = '1.4'; |
24 | our $VERSION = '1.4'; |
25 | our $JSON_VERSION = 3; # the version of the json objects generated by this program |
25 | our $JSON_VERSION = 3; # the version of the json objects generated by this program |
26 | |
26 | |
27 | our $CHANGELOG = <<EOF; |
27 | our $CHANGELOG = <<EOF; |
28 | |
28 | |
|
|
29 | - add "del" edit instruction. |
29 | - work around lsblk bug sometimes giving "dos" pttype for gpt partitions. |
30 | - work around lsblk bug sometimes giving "dos" pttype for gpt partitions. |
30 | - bootmenupolicy in synopsis must be set to 0 for text menu. |
31 | - bootmenupolicy in synopsis must be set to 0 for text menu. |
31 | - minor doc fxes. |
32 | - minor doc fxes. |
32 | |
33 | |
33 | 1.4 Thu Aug 22 10:48:22 CEST 2019 |
34 | 1.4 Thu Aug 22 10:48:22 CEST 2019 |
… | |
… | |
825 | |
826 | |
826 | Example: change the bootmgr default too |
827 | Example: change the bootmgr default too |
827 | C<{b097d2ad-bc00-11e9-8a9a-525400123456}>: |
828 | C<{b097d2ad-bc00-11e9-8a9a-525400123456}>: |
828 | |
829 | |
829 | pbcdedit edit BCD set "{bootmgr}" default "{b097d2ad-bc00-11e9-8a9a-525400123456}" |
830 | pbcdedit edit BCD set "{bootmgr}" default "{b097d2ad-bc00-11e9-8a9a-525400123456}" |
|
|
831 | |
|
|
832 | =item C<del> I<object> I<element> |
|
|
833 | |
|
|
834 | Similar to C<get>, but removed the BCD element from the specified BCD object. |
830 | |
835 | |
831 | =item C<eval> I<perlcode> |
836 | =item C<eval> I<perlcode> |
832 | |
837 | |
833 | This takes the next argument, interprets it as Perl code and |
838 | This takes the next argument, interprets it as Perl code and |
834 | evaluates it. This allows you to do more complicated modifications or |
839 | evaluates it. This allows you to do more complicated modifications or |
… | |
… | |
2469 | |
2474 | |
2470 | $object = $object eq "{default}" ? $default : dec_wguid enc_wguid $object; |
2475 | $object = $object eq "{default}" ? $default : dec_wguid enc_wguid $object; |
2471 | |
2476 | |
2472 | $bcd->{$object}{$elem} = $value; |
2477 | $bcd->{$object}{$elem} = $value; |
2473 | |
2478 | |
|
|
2479 | } elsif ($insn eq "del") { |
|
|
2480 | my $object = shift @insns; |
|
|
2481 | my $elem = shift @insns; |
|
|
2482 | |
|
|
2483 | $object = $object eq "{default}" ? $default : dec_wguid enc_wguid $object; |
|
|
2484 | |
|
|
2485 | delete $bcd->{$object}{$elem}; |
|
|
2486 | |
2474 | } elsif ($insn eq "eval") { |
2487 | } elsif ($insn eq "eval") { |
2475 | my $perl = shift @insns; |
2488 | my $perl = shift @insns; |
2476 | bcd_edit_eval "#line 1 'eval'\n$perl"; |
2489 | bcd_edit_eval "#line 1 'eval'\n$perl"; |
2477 | |
2490 | |
2478 | } elsif ($insn eq "do") { |
2491 | } elsif ($insn eq "do") { |