diff --git a/xCAT-server/lib/xcat/plugins/genimage.pm b/xCAT-server/lib/xcat/plugins/genimage.pm index 3f068bb3f..e3959b1c5 100644 --- a/xCAT-server/lib/xcat/plugins/genimage.pm +++ b/xCAT-server/lib/xcat/plugins/genimage.pm @@ -168,12 +168,24 @@ sub process_request { return 1; } $pkglist = $ref_linuximage_tab->{'pkglist'}; + if (! -e $pkglist) { + $callback->({error=>["The pkglist specified \'$pkglist\' does not exist!"],errorcode=>[1]}); + return 1; + } $srcdir = $ref_linuximage_tab->{'pkgdir'}; $srcdir_otherpkgs = $ref_linuximage_tab->{'otherpkgdir'}; $otherpkglist = $ref_linuximage_tab->{'otherpkglist'}; + if (! -e $otherpkglist) { + $callback->({error=>["The otherpkglist specified \'$otherpkglist\' does not exist!"],errorcode=>[1]}); + return 1; + } $postinstall_filename = $ref_linuximage_tab->{'postinstall'}; + if (! -e $postinstall_filename) { + $callback->({error=>["The postinstall_filename specified \'$postinstall_filename\' does not exist!"],errorcode=>[1]}); + return 1; + } $destdir = $ref_linuximage_tab->{'rootimgdir'}; $rootimg_dir = $ref_linuximage_tab->{'rootimgdir'}; $driverupdatesrc = $ref_linuximage_tab->{'driverupdatesrc'}; diff --git a/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.2.ppc64el.pkglist b/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.2.ppc64el.pkglist new file mode 100644 index 000000000..0b69a32dc --- /dev/null +++ b/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.2.ppc64el.pkglist @@ -0,0 +1,15 @@ +bash +nfs-common +openssl +isc-dhcp-client +libc-bin +linux-image-generic-lts-utopic +openssh-server +openssh-client +wget +vim +ntp +rsync +busybox-static +gawk +dnsutils diff --git a/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.2.ppc64le.pkglist b/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.2.ppc64le.pkglist new file mode 120000 index 000000000..1d26ee80e --- /dev/null +++ b/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.2.ppc64le.pkglist @@ -0,0 +1 @@ +compute.ubuntu14.04.2.ppc64el.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.ppc64el.pkglist b/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.ppc64el.pkglist new file mode 100644 index 000000000..818b8f26f --- /dev/null +++ b/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.ppc64el.pkglist @@ -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 diff --git a/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.ppc64le.pkglist b/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.ppc64le.pkglist new file mode 120000 index 000000000..b071ab8dc --- /dev/null +++ b/xCAT-server/share/xcat/install/ubuntu/compute.ubuntu14.04.ppc64le.pkglist @@ -0,0 +1 @@ +compute.ubuntu14.04.ppc64el.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.2.ppc64el.pkglist b/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.2.ppc64el.pkglist new file mode 100644 index 000000000..0b69a32dc --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.2.ppc64el.pkglist @@ -0,0 +1,15 @@ +bash +nfs-common +openssl +isc-dhcp-client +libc-bin +linux-image-generic-lts-utopic +openssh-server +openssh-client +wget +vim +ntp +rsync +busybox-static +gawk +dnsutils diff --git a/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.2.ppc64le.pkglist b/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.2.ppc64le.pkglist new file mode 120000 index 000000000..1d26ee80e --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.2.ppc64le.pkglist @@ -0,0 +1 @@ +compute.ubuntu14.04.2.ppc64el.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.ppc64le.pkglist b/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.ppc64le.pkglist deleted file mode 100644 index 818b8f26f..000000000 --- a/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.ppc64le.pkglist +++ /dev/null @@ -1,15 +0,0 @@ -bash -nfs-common -openssl -isc-dhcp-client -libc-bin -linux-image-generic -openssh-server -openssh-client -wget -vim -ntp -rsync -busybox-static -gawk -dnsutils diff --git a/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.ppc64le.pkglist b/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.ppc64le.pkglist new file mode 120000 index 000000000..b071ab8dc --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.ppc64le.pkglist @@ -0,0 +1 @@ +compute.ubuntu14.04.ppc64el.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index a35c2033f..478715df4 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -397,7 +397,7 @@ unless ($onlyinitrd) { push @npa, $kernelname; } elsif ($p =~ /linux-image-generic/) { - $kernelimage = "linux-image-generic"; + $kernelimage = $p; } elsif ($p =~ /^@/) { push @npa, "\"$p\"";