support for ubuntu 14.04 for p8le

This commit is contained in:
zhaoertao 2014-07-01 01:55:27 -07:00
parent 01d0036bc6
commit 827d039ebf
3 changed files with 27 additions and 2 deletions

View File

@ -277,6 +277,10 @@ sub copycd
{
$darch = "x86";
}
elsif ($darch and $darch =~ /ppc64el/)
{
$darch = "ppc64el";
}
elsif ($darch and $darch =~ /ppc/)
{
$darch = "ppc64";

View File

@ -0,0 +1,15 @@
bash
nfs-common
openssl
isc-dhcp-client
libc-bin
linux-image-generic
openssh-server
openssh-client
wget
vim
ntp
rsync
busybox-static
gawk
dnsutils

View File

@ -175,6 +175,8 @@ if ($netdriver) {
} else {
if ($arch eq 'x86' or $arch eq 'x86_64') {
@ndrivers = qw/tg3 bnx2 bnx2x e1000 e1000e igb mlx_en virtio_net/;
} elsif ($arch eq 'ppc64el') {
@ndrivers = qw/bnx2 bnx2x e1000 e1000e igb/;
} elsif ($arch eq 'ppc64') {
@ndrivers = qw/e1000 e1000e igb ibmveth ehea/;
} elsif ($arch eq 's390x') {
@ -242,8 +244,12 @@ unless ($onlyinitrd) {
my $aptcachecmd = "chroot $rootimg_dir apt-get update && chroot $rootimg_dir apt-cache $non_interactive ";
my $aptcmd1 = "debootstrap";
#my $aptcmd2 = "--arch $uarch $dist $rootimg_dir file://$installroot/$osver/$arch/";
my $aptcmd2 = "--verbose --arch $uarch $dist $rootimg_dir http://archive.ubuntu.com/ubuntu/";
my $aptcmd2;
if ($uarch eq 'ppc64el') {
$aptcmd2 = "--verbose --arch $uarch $dist $rootimg_dir http://ports.ubuntu.com/ubuntu-ports/";
} else {
$aptcmd2 = "--verbose --arch $uarch $dist $rootimg_dir http://archive.ubuntu.com/ubuntu/";
}
mkpath("$rootimg_dir/var/lib/dpkg");
mkpath("$rootimg_dir/var/lib/apt");