We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c324cbe commit a350863Copy full SHA for a350863
1 file changed
sles/pallet_hooks/stacki-sles15/010-add-stacki-images.sh
@@ -2,8 +2,17 @@
2
3
set -e
4
5
-# Install the stack SLES images.
6
-zypper --non-interactive install stack-sles-sles15-images
+# Install the stack SLES images. Use find + rpm because networking might be in a bad state.
+PALLET_DIR=/export/stack/pallets/${name}/${version}/${rel}/${os}/${arch}/
7
+images=$(find $PALLET_DIR -name stack-${os}-${rel}-images*rpm)
8
+if (( $(echo $images | wc --lines) > 1 )); then
9
+ echo found more than one stack-images package in ${PALLET_DIR}:
10
+ echo $images
11
+ exit 1
12
+else
13
+ echo installing $images
14
+ rpm --force -Uv $images
15
+fi
16
17
# Copy the vmlinuz and initrd
18
cp /opt/stack/images/initrd-sles-sles15-15sp1-x86_64 /tftpboot/pxelinux/
0 commit comments