All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH 09/11] add APPEND and DRACUTOPTS to make target "test"
Date: Fri, 15 May 2009 14:40:07 +0200	[thread overview]
Message-ID: <4A0D62A7.9030609@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]


call test with additional dracut options and kernel command line
parameter:

$ make APPEND="udevinfo quiet" DRACUTOPTS="-verbose" test
---
  Makefile              |    2 +-
  test/dracut.conf.test |    3 ++-
  test/test-initramfs   |    8 ++------
  3 files changed, 5 insertions(+), 8 deletions(-)



[-- Attachment #2: e2367e1948cf86c8f1b685ef1876b1df6f96c695.diff --]
[-- Type: text/x-patch, Size: 1863 bytes --]

diff --git a/Makefile b/Makefile
index 7053cd9..a4dfd92 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ rpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2
 	rm -fr BUILD BUILDROOT
 
 test: test/root.ext2 all
-	sudo test/test-initramfs
+	sudo APPEND="$(APPEND)" DRACUTOPTS="$(DRACUTOPTS)" test/test-initramfs
 
 test/root.ext2: test/test-init test/make-test-root
 	sudo test/make-test-root
diff --git a/test/dracut.conf.test b/test/dracut.conf.test
index 764cef2..6bdd6b8 100644
--- a/test/dracut.conf.test
+++ b/test/dracut.conf.test
@@ -1,2 +1,3 @@
-dracutmodules="base dash crypt lvm kernel-modules resume rootfs-block 95rootfs-block-udev network udev-rules"
+#dracutmodules="base dash crypt lvm kernel-modules resume rootfs-block 95rootfs-block-udev network udev-rules"
+dracutmodules="base dash crypt lvm kernel-modules debug resume rootfs-block-udev udev-rules"
 #modules="ata_piix ext2 sd_mod"
diff --git a/test/test-initramfs b/test/test-initramfs
index f1fed7c..a050deb 100755
--- a/test/test-initramfs
+++ b/test/test-initramfs
@@ -1,17 +1,13 @@
 #!/bin/bash
 kernel=$(uname -r)
 [[ -f test/root.ext2 ]] || test/make-test-root
-./dracut -c test/dracut.conf.test -l -f test/initramfs.testing || exit
 
-#qemu-kvm -hda test/root.ext2 -m 512M -nographic -net none \
-#    -kernel /boot/vmlinuz-$kernel \
-#    -append "root=/dev/sda init=/init rw rootfstype=ext2 quiet ramfsdebug console=ttyS0,115200n81" \
-#    -initrd test/initramfs.testing
+./dracut $DRACUTOPTS -c test/dracut.conf.test -l -f test/initramfs.testing || exit
 
 qemu-kvm -hda test/root.ext2 -m 512M -nographic  \
 	-net nic,macaddr=52:54:00:12:34:56  \
 	-net user  \
 	-kernel /boot/vmlinuz-$kernel \
 	-initrd test/initramfs.testing \
-	-append "root=/dev/sda init=/init rw rootfstype=ext2 console=ttyS0,115200n81"   
+	-append "root=/dev/sda rw console=ttyS0,115200n81 $APPEND"   
 


                 reply	other threads:[~2009-05-15 12:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A0D62A7.9030609@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.