./scripts/curtinator: line 132: $3: unbound variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtinator |
Triaged
|
Undecided
|
Taihsiang Ho |
Bug Description
curtinator fails to complete. Exits with 'error unbound variable'
Packages installed:
qemu-kvm libvirt-bin virt-viewer genisoimage libguestfs-tools gettext-base ovmf
:~/curtinator$ whoami
sean
:~/curtinator$ groups
sean mail sudo kvm libvirt docker
:~/curtinator$ sudo cat /etc/group | grep libvirt
libvirt:x:129:sean
libvirt-
libvirt-
:~/curtinator$ sudo cat /etc/group | grep kvm
kvm:x:127:sean
There is no libvirtd group as per README.
$ uname -a
Linux 4439C45082E6.
:~/curtinator$ bzr update
Tree is up to date at revision 16 of branch /home/sean/
:~/curtinator$ ls
curtinator-oem data README scripts ubuntu-
:~/curtinator$ sudo ./scripts/
Extracting ubuntu-
Creating ubuntu-
Patching ubuntu-
./scripts/
Cleaning environment!
:~/curtinator$ ls
curtinator-oem data README scripts ubuntu-
Curtinator doesn't know about 18.04, this results in this rather obtuse error.
There's a table of known Ubuntu versions around line 169:
function patch_initrd() {
local distribution=$1; shift
local initrd=$1; shift
local files=$@
local bs=""
temp=$(mktemp)
# only needed for 18.10 and beyond
# the following are also released later than 18.10
# 14.04.6
# 18.04.3
case $distribution in
14.04.6) bs=1576592;;
16.04.6) bs=1605632;;
18.04.3) bs=2441216;;
18.10) bs=1605632;;
19.04) bs=2092032;;
esac
This needs to be augmented with 18.04, but I don't know how to obtain the correct bs value. I think taihsiang would need to determine that.