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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user