I would like to install kernels with
mhwd-kernel i <kernels>
in a chroot to a system with just base installed. I have been been using arch-chroot like this in my script:
arch-chroot $MOUNTPOINT /bin/bash -c "mhwd-kernel -i"
However, mhwd-kernel returns this pacman error:
error: no targets specified (use -h for help)
Mhwd itself recognizes the inputted kernels, because if it does not, it gives this error:
Error: Invalid argument.
Please choose one of the available kernels:
* linux310
* linux312
* linux316
* linux318
* linux41
* linux410
* linux44
* linux48
* linux49
* linux-rt-lts-manjaro
* linux-rt-manjaro
So for some reason, mhwd-kernel does not pass any packages to pacman when ran in chroot.
Any ideas how to get around this?