2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 03:00:26 +00:00

Preliminary code for PowerKVM 3.1 support

This commit is contained in:
ligc
2015-06-11 03:18:09 -04:00
parent c1bbed0011
commit 63ca0b9811
2 changed files with 50 additions and 3 deletions

View File

@@ -1302,12 +1302,16 @@ sub mkinstall
)
) or ( $arch =~ /ppc/
and -r "$pkgdir/ppc/ppc64/vmlinuz"
and $kernpath = "$pkgdir/ppc/ppc64/vmlinuz"
and ((-r "$pkgdir/ppc/ppc64/vmlinuz"
and $kernpath = "$pkgdir/ppc/ppc64/vmlinuz")
or (-r "$pkgdir/ppc/ppc64le/vmlinuz"
and $kernpath = "$pkgdir/ppc/ppc64le/vmlinuz"))
and ((-r "$pkgdir/ppc/ppc64/ramdisk.image.gz"
and $initrdpath = "$pkgdir/ppc/ppc64/ramdisk.image.gz")
or (-r "$pkgdir/ppc/ppc64/initrd.img"
and $initrdpath = "$pkgdir/ppc/ppc64/initrd.img")))
and $initrdpath = "$pkgdir/ppc/ppc64/initrd.img")
or (-r "$pkgdir/ppc/ppc64le/initrd.img"
and $initrdpath = "$pkgdir/ppc/ppc64le/initrd.img")))
)
{
#TODO: driver slipstream, targetted for network.

View File

@@ -0,0 +1,43 @@
#
# Select a zone
# Add the --utc switch if your hardware clock is set to GMT
#
#timezone US/Hawaii
#timezone US/Pacific
#timezone US/Mountain
#timezone US/Central
#timezone US/Eastern
timezone --utc "#TABLE:site:key=timezone:value#"
#
# Don't do X
#
#skipx
#
# To generate an encrypted root password use:
#
# perl -e 'print crypt("blah","Xa") . "\n";'p
# openssl passwd -apr1 -salt xxxxxxxx password
#
# where "blah" is your root password.
#
rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password#
#partition / --ondisk=/dev/mapper/ibmpkvm_vg_root-ibmpkvm_lv_root
partition / --ondisk=/dev/sda
#the --devicename must specify right now, but without network command, it can also work, so we delete it.
#network --bootproto dhcp
%post
touch "/startpost"
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat#
touch "/inpost"
#sleep 1000000
%end