mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
image: fix "ignored null byte in input" warning on AWS
This commit is contained in:
parent
f0f109a1ea
commit
912384a87d
@ -12,7 +12,7 @@ AWS_STATE_DISK_SYMLINK="/dev/${AWS_STATE_DISK_DEVICENAME}"
|
||||
# hack: aws nvme udev rules are never executed. Create symlinks for the nvme devices manually.
|
||||
while [[ ! -L ${AWS_STATE_DISK_SYMLINK} ]]; do
|
||||
for nvmedisk in /dev/nvme*n1; do
|
||||
linkname=$(nvme amzn id-ctrl -b "${nvmedisk}" | tail -c +3072 | tr -d ' ') || true
|
||||
linkname=$(nvme amzn id-ctrl -b "${nvmedisk}" | tail -c +3073 | head -c 32 | tr -d ' ') || true
|
||||
if [[ -n ${linkname} ]] && [[ ${linkname} == "${AWS_STATE_DISK_DEVICENAME}" ]]; then
|
||||
ln -s "${nvmedisk}" "${AWS_STATE_DISK_SYMLINK}"
|
||||
fi
|
||||
|
@ -43,7 +43,8 @@ install() {
|
||||
# aws nvme disks
|
||||
inst_multiple \
|
||||
tail \
|
||||
tr
|
||||
tr \
|
||||
head
|
||||
|
||||
# azure scsi disks
|
||||
inst_multiple \
|
||||
|
Loading…
Reference in New Issue
Block a user