On Mon, May 21, 2018 at 11:29:04AM -0700, Omar Sandoval wrote:
> But I'm curious about this specific example. Is this not mounted for you
> automatically? I'm guessing systemd does it for me on my setup.
No my setup is kind of special. I don't want to mess with all the
user-space so all I do is:
dracut --no-compress --kver `make kernelrelease` --kmoddir mods/ \
--no-hostonly --no-hostonly-cmdline --modules "bash base" \
--tmpdir `pwd`/myinitrd --force myinitrd/initrd \
--add-drivers "loop nvme nvme-loop nvmet" \
--install "lsblk find sort parted getopt fio tput column date \
dirname mktemp ps diff awk timeout time losetup \
truncate wc grep stat basename cut blktrace sg_inq \
realpath findmnt vi dd sed rm rmdir nvme" \
--include "$HOME/src/blktests" "/blktests
qemu-kvm -m 4096 -smp 4 -nographic -serial mon:stdio -kernel \
arch/x86/boot/bzImage -initrd myinitrd/initrd \
-append "console=ttyS0 debug"
I have the above in a shell wrapper as I simply can't remember it, or
I just use rapido [1] which a co-worker of mine started for this job.
As minimal as possible. I try to get my rebuild - boot - test cycles
short.
With my current config I have a bootup time in qemu below half a
second on a reasonable machine in my lab and just below one second
on my laptop.
[1] https://github.com/rapido-linux/rapido
Byte,
Johannes
--
Johannes Thumshirn Storage
[email protected] +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850