mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 14:11:07 +02:00
amis: update publish script for new block device mapping
This commit is contained in:
parent
569ad7ff31
commit
d5969d1a23
@ -12,4 +12,4 @@ fi
|
||||
|
||||
set -e
|
||||
source $DIR/marineam-auth.sh
|
||||
$DIR/publish_ami.sh -b $BOARD -g $GROUP -V $VER"
|
||||
$DIR/publish_ami.sh -b $BOARD -g $GROUP -V $VER
|
||||
|
@ -94,7 +94,7 @@ publish_ami() {
|
||||
local virt_type="$2"
|
||||
local r_amiid="$3"
|
||||
local r_snapshotid=$(ec2-describe-images --region="$r" "$r_amiid" \
|
||||
| grep '^BLOCKDEVICEMAPPING.*/dev/xvda' | cut -f5) || true
|
||||
| grep -E '^BLOCKDEVICEMAPPING.*/dev/(xv|s)da' | cut -f5) || true
|
||||
|
||||
# run in a subshell, the -e flag doesn't get inherited
|
||||
set -e
|
||||
|
Loading…
x
Reference in New Issue
Block a user