2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 10:18:20 +00:00

Support SuSE style RSTe

SuSE renames the RSTe volume in the middle.
This commit is contained in:
Jarrod Johnson
2019-01-16 14:37:50 -05:00
parent c6c70e5df1
commit d527bb0b86

View File

@@ -223,10 +223,15 @@ if [ -z "$install_disk" ]; then
for file in $tmpfile*; do
rm $file;
done
if [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ]; then
if [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ] && grep suse /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
install_disk="/dev/md/Volume0_0"
echo "[get_install_disk]The install_disk is $install_disk by RSTe detection."
elif [ "$foundm2" == 0 -a -b /dev/md/Volume0 ]; then
install_disk="/dev/md/Volume0"
echo "[get_install_disk]The install_disk is $install_disk by RSTe detection."
fi
fi
rm -rf $tmpdir;