Il 22/02/2014 11:19, Lin Ma ha scritto:
For unattended_install.url and unattended_install.nfs,
autoyast.iso will be mounted as 1st cdrom.
Signed-off-by: Lin Ma <[email protected]>
---
shared/cfg/guest-os/Linux/OpenSUSE.cfg | 2 ++
shared/cfg/guest-os/Linux/SLES.cfg | 2 ++
2 files changed, 4 insertions(+)
diff --git a/shared/cfg/guest-os/Linux/OpenSUSE.cfg
b/shared/cfg/guest-os/Linux/OpenSUSE.cfg
index 487b9b5..043d196 100644
--- a/shared/cfg/guest-os/Linux/OpenSUSE.cfg
+++ b/shared/cfg/guest-os/Linux/OpenSUSE.cfg
@@ -4,3 +4,5 @@
unattended_install, svirt_install:
kernel_params = "autoyast=device://sr1/autoinst.xml console=ttyS0,115200
console=tty0"
wait_no_ack = yes
+ unattended_install.url, unattended_install.nfs:
+ kernel_params = "autoyast=device://sr0/autoinst.xml console=ttyS0,115200
console=tty0"
diff --git a/shared/cfg/guest-os/Linux/SLES.cfg
b/shared/cfg/guest-os/Linux/SLES.cfg
index 4ba65f7..f11040d 100644
--- a/shared/cfg/guest-os/Linux/SLES.cfg
+++ b/shared/cfg/guest-os/Linux/SLES.cfg
@@ -5,6 +5,8 @@
kernel = linux
initrd = initrd
wait_no_ack = yes
+ unattended_install.url, unattended_install.nfs:
+ kernel_params = "autoyast=device://scd0/autoinst.xml console=ttyS0,115200
console=tty0"
boot:
# As SLES need to perform firstboot to finish the installation,
Extending the boot login_timeout
login_timeout = 720
There is similar code to do this for Red Hat style kickstarts in
virttest/tests/unattended_install.py's setup_url function:
if 'repo=cdrom' in self.kernel_params:
# Red Hat
self.kernel_params = re.sub('repo\=[\:\w\d\/]*',
'repo=%s' % self.url,
self.kernel_params)
Perhaps you can modify the kernel_params for autoyast there, too?
Paolo
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel