diff --git a/scripts/drive-rebuild.py b/scripts/drive-rebuild.py index 9b628d15..5eed8532 100755 --- a/scripts/drive-rebuild.py +++ b/scripts/drive-rebuild.py @@ -50,8 +50,13 @@ else: net = ["-netdev", "user,id=n0", "-device", "e1000,netdev=n0"] if WANT_NET else [] +# APPEND override: por defecto consola serie + initramfs. Útil para experimentar con params del kernel +# (p.ej. el frente kernel-from-source: el bzImage hammer bootea pero bwrap falla en pivot_root porque / +# es el rootfs absoluto del namespace; `rootfstype=tmpfs` NO lo arregla — la causa es que / no tiene +# mount padre, no el tipo de fs). Override con APPEND="…". +APPEND = os.environ.get("APPEND", "console=ttyS0 rdinit=/sbin/init") QEMU = (["qemu-system-x86_64", "-m", MEM, "-no-reboot", "-nographic"] + accel + net + - ["-kernel", KERNEL, "-initrd", CPIO, "-append", "console=ttyS0 rdinit=/sbin/init"]) + ["-kernel", KERNEL, "-initrd", CPIO, "-append", APPEND]) print(f"==> kernel : {KERNEL}") print(f"==> initramfs : {CPIO}")