bootstrap.sh on Fedora does not progress past PKGS if all are present
Created by: skierpage
Reproduction: I ran boostrap.sh, it installed all the Fedora dependencies but then rustup ran out of space. I got rustup working and re-ran bash -e bootstrap.sh
but all it prints is
Detected Fedora
QEMU already installed!
Expected behavior: bootstrap.sh should continue on to invoke boot
Actual behavior: I ran bash -evx bootstrap.sh
and it just stops after
...
++ for pkg in gcc gcc-c++ glibc-devel.i686 nasm make fuse-devel
++ rpm -q fuse-devel
++ '[' 0 -ne 0 ']'
+ PKGS=
It should continue on to COUNT PKGS and then go on to invoke its boot
function, but simply stops. The PKGS=
line is some complex bash fu:
PKGS=$(for pkg in gcc gcc-c++ glibc-devel.i686 nasm make fuse-devel; do rpm -q $pkg > /dev/null; [ $? -ne 0 ] && echo $pkg; done)
somehow when all are installed it exits the script. My workaround was to remove one package (sudo dnf remove fuse-devel
) and that made the script continue to install.
Build information :Linux fedlaptop 4.11.7-200.fc25.x86_64 #1 SMP Mon Jun 26 15:58:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Blocking/related: [issues or PRs blocking or being related to this issue.]
Misc: My default shell is zsh, but this invokes bash, Fedora has bash 4.3.43(1).
FWIW boostrap.sh goes on to fail in "Cloning github repo..." with fatal: destination path 'redox' already exists and is not an empty directory
, so it's not re-entrant. I'll get there