2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-12-11 03:30:40 +00:00

Adapt SLES to only modify SLES12

SLE15 uses Volume0_0, not Volume0 like SLES12
This commit is contained in:
Jarrod Johnson
2019-01-16 15:02:20 -05:00
parent d527bb0b86
commit 2222e61612

View File

@@ -223,7 +223,7 @@ if [ -z "$install_disk" ]; then
for file in $tmpfile*; do
rm $file;
done
if [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ] && grep suse /etc/os-release; then
if [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ] && grep SLES /etc/os-release; then
install_disk="/dev/md/Volume0"
echo "[get_install_disk]The install_disk is $install_disk by RSTe detection."
elif [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ]; then