2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-09 11:03:03 +00:00

Merge pull request #2256 from xcat2/master

merge changes from master to 2.13 branch for 2.13 release.(5+)
This commit is contained in:
zet809
2016-12-05 17:29:01 +08:00
committed by GitHub
8 changed files with 14 additions and 13 deletions
@@ -66,7 +66,7 @@ if [ ! -z $SNAPSHOTSERVER ]; then
/bin/sh
exit
fi
RS= $(( $RANDOM % 20 ))
RS=$(( $RANDOM % 20 ))
echo "Trying again in $RS seconds..."
sleep $RS
done
@@ -83,7 +83,7 @@ if [ ! -z $SNAPSHOTSERVER ]; then
/bin/sh
exit
fi
RS= $(( $RANDOM % 20 ))
RS=$(( $RANDOM % 20 ))
echo "Trying again in $RS seconds..."
sleep $RS
done
@@ -98,7 +98,7 @@ if [ ! -z $SNAPSHOTSERVER ]; then
/bin/sh
exit
fi
RS= $(( $RANDOM % 20 ))
RS=$(( $RANDOM % 20 ))
echo "Trying again in $RS seconds..."
sleep $RS
done
@@ -212,7 +212,7 @@ elif [ -r /rootimg-statelite.gz ]; then
/bin/sh
exit
fi
RS= $(( $RANDOM % 20 ))
RS=$(( $RANDOM % 20 ))
echo "Trying again in $RS seconds..."
sleep $RS
done
@@ -227,7 +227,7 @@ elif [ -r /rootimg-statelite.gz ]; then
/bin/sh
exit
fi
RS= $(( $RANDOM % 20 ))
RS=$(( $RANDOM % 20 ))
echo "Trying again in $RS seconds..."
sleep $RS
done
@@ -17,6 +17,9 @@ cmd:makedhcp -a
check:rc==0
cmd:makeconservercf $$CN
check:rc==0
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then mv $rootimgdir $rootimgdir.regbak -f;fi
check:rc==0
cmd:if cat /etc/*release |grep SUSE >/dev/null;then if [ ! -d /install/custom/netboot/sles ]; then mkdir -p /install/custom/netboot/sles; fi; elif cat /etc/*release |grep "Red Hat" >/dev/null;then if [ ! -d /install/custom/netboot/rh ]; then mkdir -p /install/custom/netboot/rh; fi; elif cat /etc/*release |grep "Ubuntu" >/dev/null;then if [ ! -d /install/custom/netboot/ubuntu ]; then mkdir -p /install/custom/netboot/ubuntu; fi; fi
check:rc==0
cmd:if cat /etc/*release |grep SUSE >/dev/null;then if [ ! -e /install/custom/netboot/sles/compute.synclist ]; then echo "/etc/resolv.conf -> /etc/resolv.conf" > /install/custom/netboot/sles/compute.synclist; fi; elif cat /etc/*release |grep "Red Hat" >/dev/null;then if [ ! -e /install/custom/netboot/rh/compute.synclist ]; then echo "/etc/resolv.conf -> /etc/resolv.conf" > /install/custom/netboot/rh/compute.synclist; fi; elif cat /etc/*release |grep "Ubuntu" >/dev/null;then if [ ! -e /install/custom/netboot/ubuntu/compute.synclist ]; then echo "/etc/resolv.conf -> /etc/resolv.conf" > /install/custom/netboot/ubuntu/compute.synclist;fi; fi
@@ -61,4 +64,7 @@ check:output=~booted
cmd:xdsh $$CN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
check:rc==0
end
@@ -14,7 +14,6 @@
"ALL","/etc/sysconfig/","tmpfs",,
"ALL","/etc/ssh/","tmpfs",,
"ALL","/etc/systemd/system/multi-user.target.wants/","tmpfs",,
"ALL","/usr/lib/systemd/system/ntpd.service","tmpfs",,
"ALL","/tmp/","tmpfs",,
"ALL","/var/","tmpfs",,
"ALL","/opt/xcat/","tmpfs",,
1 #image file options comments disable
14 ALL /etc/sysconfig/ tmpfs
15 ALL /etc/ssh/ tmpfs
16 ALL /etc/systemd/system/multi-user.target.wants/ tmpfs
ALL /usr/lib/systemd/system/ntpd.service tmpfs
17 ALL /tmp/ tmpfs
18 ALL /var/ tmpfs
19 ALL /opt/xcat/ tmpfs
@@ -129,6 +129,4 @@ check:rc==0
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
check:rc==0
cmd:rmdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
check:rc==0
end
@@ -93,6 +93,4 @@ check:output=~compute/rootimg on / type nfs
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then rm -rf $rootimgdir;fi
check:rc==0
cmd:rmdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
check:rc==0
end
@@ -95,6 +95,4 @@ check:output=~rootfs on / type
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
check:rc==0
cmd:rmdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
check:rc==0
end
@@ -17,7 +17,7 @@ cmd:makedhcp -a
check:rc==0
cmd:makeconservercf $$CN
check:rc==0
cmd:rm -rf /install/netboot/__GETNODEATTR($$CN,os)__/x86_64/compute
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then mv $rootimgdir $rootimgdir.regbak -f;fi
check:rc==0
cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute
check:rc==0
@@ -44,4 +44,6 @@ check:output=~booted
cmd:xdsh $$CN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
check:rc==0
end