r/voidlinux • u/[deleted] • Nov 22 '19
How do I update the initramfs ?
I want to disable my dGPU at boot and enable it at shutdown. So I add the following to /etc/modprobe.d/bbswitch.conf:
options bbswitch load_state=0 unload_state=1The guide says that:
You have to update your initial ramdisk (initrd) for the changes propagate to the boot process. On Debian and Ubuntu, this can performed by running update-initramfs -u as root. How do i update the initramfs for Void ? is it : dracut --force ?
also, Can i have load_state=0 unload_state=1 both in the options bbswitch line ? or should I make separate lines like this:
options bbswitch load_state=0
options bbswitch unload_state=1
3
Upvotes
1
u/[deleted] Nov 22 '19
So here is the procedure:
(1) I add:
to
/etc/modprobe.d/bbswitch.conf(2) I add
hostonly=yesto/etc/dracut.conf.d/manual.conf(3) reboot.
(4)
dracut --force --kver <kernel_version>(5)
xbps-reconfigure -f linux<kernel-version>---------
Questions:
(1) is this correct ? can someone confirm ?
(2) Do i have to do the above everytime a new kernel is installed ?
(3) Is bbswitch built with DKMS support in Void Linux ?