mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-19 01:35:24 +01:00
Clarify custom kernel logic
This commit is contained in:
parent
a22c55440c
commit
58b8c1768c
1 changed files with 1 additions and 5 deletions
|
|
@ -85,7 +85,7 @@ def main():
|
||||||
default="qemu-system-x86_64")
|
default="qemu-system-x86_64")
|
||||||
parser.add_argument("-qr", "--qemu-ram", help="Memory (in megabytes) allocated to QEMU VM",
|
parser.add_argument("-qr", "--qemu-ram", help="Memory (in megabytes) allocated to QEMU VM",
|
||||||
default=4096)
|
default=4096)
|
||||||
parser.add_argument("-qk", "--kernel", help="Kernel to use (default is ./kernel)")
|
parser.add_argument("-qk", "--kernel", help="Custom sysa kernel to use")
|
||||||
|
|
||||||
parser.add_argument("-b", "--bare-metal", help="Build images for bare metal",
|
parser.add_argument("-b", "--bare-metal", help="Build images for bare metal",
|
||||||
action="store_true")
|
action="store_true")
|
||||||
|
|
@ -111,10 +111,6 @@ def main():
|
||||||
if check_types() == 0:
|
if check_types() == 0:
|
||||||
raise ValueError("One of qemu, chroot, bwrap, or bare metal must be selected.")
|
raise ValueError("One of qemu, chroot, bwrap, or bare metal must be selected.")
|
||||||
|
|
||||||
if not args.kernel and os.path.isfile("kernel"):
|
|
||||||
print("WARNING: Implicit use of a provided kernel is DEPRECATED. Use the --kernel option!")
|
|
||||||
args.kernel = "kernel"
|
|
||||||
|
|
||||||
# Arch validation
|
# Arch validation
|
||||||
if args.arch != "x86":
|
if args.arch != "x86":
|
||||||
raise ValueError("Only x86 is supported at the moment.")
|
raise ValueError("Only x86 is supported at the moment.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue