mirror of
https://github.com/rancher/os.git
synced 2025-08-31 14:23:11 +00:00
remove dependency on version string
using rancher.rm_usr kernel param instead
This commit is contained in:
@@ -13,6 +13,7 @@ INITRD=${BASE}/dist/artifacts/initrd
|
||||
|
||||
QEMU=1
|
||||
FORMAT=1
|
||||
RM_USR=1
|
||||
REBUILD=1
|
||||
|
||||
while [ "$#" -gt 0 ]; do
|
||||
@@ -54,6 +55,9 @@ while [ "$#" -gt 0 ]; do
|
||||
--no-format)
|
||||
FORMAT=0
|
||||
;;
|
||||
--no-rm-usr)
|
||||
RM_USR=0
|
||||
;;
|
||||
--no-rebuild)
|
||||
REBUILD=0
|
||||
;;
|
||||
@@ -110,6 +114,9 @@ KERNEL_ARGS="quiet rancher.password=rancher console=ttyS0 ${QEMU_APPEND}"
|
||||
if [ "$FORMAT" == "1" ]; then
|
||||
KERNEL_ARGS="${KERNEL_ARGS} rancher.state.formatzero=true rancher.state.autoformat=[/dev/sda,/dev/vda]"
|
||||
fi
|
||||
if [ "$RM_USR" == "1" ]; then
|
||||
KERNEL_ARGS="${KERNEL_ARGS} rancher.rm_usr"
|
||||
fi
|
||||
|
||||
if [ "$KVM" == "" ] && [ -c /dev/kvm ] && [ -r /dev/kvm ] && [ -w /dev/kvm ]; then
|
||||
KVM=1
|
||||
|
Reference in New Issue
Block a user