revertme - allow for mkinitcpio failure

This commit is contained in:
bill-auger 2020-04-01 13:35:25 -04:00
parent d593ad28e1
commit fdcb13660f
No known key found for this signature in database
GPG Key ID: 908710913E8C7778

@ -296,9 +296,10 @@ pvm_bootstrap() # assumes: $arch $imagefile $loopdev $workdir , traps: INT TERM
msg "regenerating initcpio for kernel: '${kernel}'"
sudo cp "$preset_file"{,.backup} || return "$EXIT_FAILURE"
echo "$default_options" | sudo tee -a "$preset_file" > /dev/null || return "$EXIT_FAILURE"
# regenerating the initcpio currently produces a benign error:
# FIXME: regenerating the initcpio currently produces a benign error:
# https://bugs.archlinux.org/task/65725
sudo arch-chroot "$workdir" mkinitcpio -p ${kernel} #|| return "$EXIT_FAILURE"
# sudo arch-chroot "$workdir" mkinitcpio -p ${kernel} || return "$EXIT_FAILURE"
sudo arch-chroot "$workdir" mkinitcpio -p ${kernel}
sudo mv "$preset_file"{.backup,} || return "$EXIT_FAILURE"
done