fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
501 stars 35 forks source link

Qemu with linux kernel failing at start #405

Closed rick-masters closed 9 months ago

rick-masters commented 9 months ago

Builds with qemu and providing a linux kernel are failing.

./rootfs.py --qemu --kernel kernel

There is this error:

Bootstrapping x86
Traceback (most recent call last):
  File "./rootfs.py", line 280, in <module>
    main()
  File "./rootfs.py", line 183, in main
    bootstrap(args, generator, target, args.target_size)
  File "./rootfs.py", line 246, in bootstrap
    generator.prepare(target, using_kernel=True, target_size=size)
  File "/home/ubuntu/lb-test-master-qemu-linux-3/lib/generator.py", line 76, in prepare
    size=(target_size + "M") if target_size else "16G",
TypeError: unsupported operand type(s) for +: 'int' and 'str'

If the above is fixed, there is this error:

Traceback (most recent call last):
  File "./rootfs.py", line 280, in <module>
    main()
  File "./rootfs.py", line 183, in main
    bootstrap(args, generator, target, args.target_size)
  File "./rootfs.py", line 254, in bootstrap
    '-drive', 'file=' + target.get_disk("external") + ',format=raw',
TypeError: can only concatenate str (not "NoneType") to str