mirror of
https://github.com/rancher/os.git
synced 2025-09-08 02:01:27 +00:00
Use OS_AUTOFORMAT instead of VMWARE_AUTOFORMAT
This commit is contained in:
@@ -1 +0,0 @@
|
||||
APPEND rancher.autologin=tty1 rancher.autologin=ttyS0 rancher.autologin=ttyS1 rancher.autologin=ttyS1 rancher.state.autoformat=[/dev/sda,/dev/vda] rancher.state.dev=LABEL=RANCHER_STATE console=tty1 console=ttyS0 console=ttyS1 printk.devkmsg=on panic=10 ${APPEND}
|
@@ -20,13 +20,14 @@ popd
|
||||
DIST=$(pwd)/dist
|
||||
echo "mkdir -p ${DIST}/boot/isolinux/"
|
||||
mkdir -p ${DIST}/boot/isolinux/
|
||||
cat scripts/isolinux.cfg | envsubst > ${DIST}/boot/isolinux/isolinux.cfg
|
||||
cat scripts/isolinux_label.cfg | LABEL=${VERSION} envsubst > ${DIST}/boot/linux-current.cfg
|
||||
#cat scripts/isolinux_label.cfg | LABEL=debug APPEND="rancher.debug=true" envsubst > ${DIST}/boot/linux-previous.cfg
|
||||
if [ "$VMWARE_AUTOFORMAT" = 1 ] && [ -e ".make-vmware" ];then
|
||||
cat scripts/global-vmware.cfg | LABEL=${VERSION} envsubst > ${DIST}/boot/global.cfg
|
||||
cat scripts/isolinux.cfg | envsubst > ${DIST}/boot/isolinux/isolinux.cfg
|
||||
cat scripts/isolinux_label.cfg | LABEL=${VERSION} envsubst > ${DIST}/boot/linux-current.cfg
|
||||
#cat scripts/isolinux_label.cfg | LABEL=debug APPEND="rancher.debug=true" envsubst > ${DIST}/boot/linux-previous.cfg
|
||||
if [ "$OS_AUTOFORMAT" = "true" ]; then
|
||||
APPEND_AUTOFORMAT="rancher.state.autoformat=[/dev/sda,/dev/vda] rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait=true"
|
||||
cat scripts/global.cfg | APPEND="$APPEND_AUTOFORMAT" envsubst > ${DIST}/boot/global.cfg
|
||||
else
|
||||
cat scripts/global.cfg | LABEL=${VERSION} envsubst > ${DIST}/boot/global.cfg
|
||||
cat scripts/global.cfg | envsubst > ${DIST}/boot/global.cfg
|
||||
fi
|
||||
cp scripts/rancher.png ${DIST}/boot/
|
||||
|
||||
|
@@ -11,7 +11,7 @@ source ./scripts/version
|
||||
touch dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
|
||||
chmod 755 dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
|
||||
|
||||
if [ "$VMWARE_AUTOFORMAT" = 1 ]; then
|
||||
if [ "$OS_AUTOFORMAT" = "true" ]; then
|
||||
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/latest/vmware/rancheros-autoformat.iso" >> ./dist/publish_gss_latest.sh
|
||||
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/${VERSION}/vmware/rancheros-autoformat.iso" >> ./dist/publish_gss_${VERSION}.sh
|
||||
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/latest/rancheros-vmware.iso" >> ./dist/publish_gss_latest.sh
|
||||
|
Reference in New Issue
Block a user