Commit 999e6c2
committed
Drop import_args variable and let import_pool build its own arguments
Rather than define `import_args` in zfsbootmenu-parse-commandline.sh
based on the value of `force_import` and `read_write` on the ZBM kernel
command line, the parser just defines `force_import` and `read_write`
variables based on these arguments. The `import_pool` function uses
these variables directly to determine the right command-line arguments
to pass to `zpool import`.
This is a bit cleaner and allows for a construct like
read_write=yes import_pool zpool
to force rw imports rathern than rewriting `import_args`. Note that
passing `read_write=yes` in that call does not override the value in the
environment, so other calls to `import_pool` will fall back to expected
behavior.
Closes #75.1 parent b85d836 commit 999e6c2
File tree
3 files changed
+24
-10
lines changed3 files changed
+24
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
| 558 | + | |
558 | 559 | | |
559 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
560 | 576 | | |
561 | | - | |
| 577 | + | |
562 | 578 | | |
563 | 579 | | |
564 | 580 | | |
| |||
641 | 657 | | |
642 | 658 | | |
643 | 659 | | |
644 | | - | |
645 | 660 | | |
646 | | - | |
| 661 | + | |
647 | 662 | | |
648 | 663 | | |
649 | 664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | | - | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments