Skip to content

Commit

Permalink
MTL-1407 Honor rd.luks=0 Throughout (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustydb authored Dec 23, 2021
1 parent 7a5d1d5 commit 4dbfb42
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.1
1.6.2
4 changes: 4 additions & 0 deletions 93metalluksetcd/metal-luksetcd-unlock.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
# metal-luksetcd-unlock.sh
if [ $metal_noluks = 0 ]; then
echo >2 'skipping unlocking of LUKS devices (rd.luks=0 was set on the cmdline)'
exit 0
fi

type unlock > /dev/null 2>&1 || . /lib/metal-luksetcd-lib.sh

Expand Down
4 changes: 2 additions & 2 deletions 93metalluksetcd/metal-update-keystore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set -u
# 2. rd.luks.key=/pki/etcd.key:LABEL=ROOTRAID must be given so the OS knows to look for the key here.
#
# The values above can be anything, as long as their given and refer to the same device.
if getargbool 0 rd.luks -d -n rd_NO_LUKS; then
echo >2 'skipping keystore management (no LUKS)'
if [ $metal_noluks = 0 ]; then
echo >2 'skipping keystore management (no LUKS; rd.luks=0 was set on the cmdline)'
exit 0
fi

Expand Down
2 changes: 2 additions & 0 deletions 93metalluksetcd/parse-metal-luksetcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ getargbool 0 metal.debug -d -y metal_debug && metal_debug=1
metal_size_etcdk8s=$(getargnum 32 10 64 metal.disk.etcdk8s.size)

getargbool 0 metal.no-wipe -d -y metal_nowipe && metal_nowipe=1 || metal_nowipe=0
getargbool 0 rd.luks -d -n rd_NO_LUKS && metal_noluks=1 || metal_noluks=0

export metal_noluks
export metal_debug
export metal_size_etcdk8s
export metal_nowipe
Expand Down

0 comments on commit 4dbfb42

Please sign in to comment.