Re: Feedback on my development setup

Josh Marshall <[email protected]> Wed, 17 Apr 2024 12:11:39 -0400
Newsgroups gmane.linux.newbie
Message-ID <CAFkJGRe+UpNPSnSL623o6G+NCkK_uGPx-NCNLQx0vSGpMo98eg@mail.gmail.com>
Further tweaking to use sda3 for the root partition in the disk, I get
the following: success!

This is a pretty good setup now but it could use an automation harness
and documentation.  I'm willing to make the script and write-up.
Where should I post it?  My inclination would be to submit it
somewhere near https://docs.kernel.org/kernel-hacking/hacking.html .

On Tue, Apr 16, 2024 at 11:22 AM ngn <[email protected]> wrote:
>
> On Tue, Apr 16, 2024 at 11:03:52AM -0400, Josh Marshall wrote:
> > I tried that, but there was some non-descript error with code -2 (any
> > major error) about launching the init process for [init,
> > rdinit]=/lib/systemd and /usr/bin/bash.  Can you provide a working
> > sample?  Sorry if I'm being difficult.  I am really tired of dead ends
> > and trying them alone.
> >
>
> If the kernel fails to start the init, try adding the -append "root=/dev/sda rw" option:
>
> qemu-system-x86_64 -s -cpu host                   \
>     -display gtk                                  \
>     -vga qxl                                      \
>     -accel kvm                                    \
>     -m 1G                                         \
>     -kernel arch/home/arch/linux/boot/x86/vmlinux \
>     -append "root=/dev/sda rw"                    \
>     -drive format=qcow2,file=$HOME/Downloads/Arch-Linux-x86_64-basic.qcow