You are not logged in.

#1 2016-01-03 20:40:27

sguertin
Member
Registered: 2013-12-23
Posts: 20

[SOLVED] How do I specify a custom location to install kernel updates?

I'm using systemd-boot (gummiboot), and I have my /boot partition set up a little differently than standard. I have a directory for each of my multiple linux installations. I.e. /boot/arch1/vmlinuz-linux and /boot/debian1/vmlinuz . Pacman just updated the kernel and put the new files in the standard location. i.e. /boot/vmlinuz-linux .

(For the benefit of those finding this via google, the error I encountered was

 mount: unkown filesystem type `vfat` 

when it failed to mount /boot .)

I can move the files to the right spot by hand, but is there a way to tell pacman where I want kernel updates installed?

I've done this for Debian (but not tested it) by following this. Would doing it in Arch/Pacman be similar?

Last edited by sguertin (2016-01-04 18:18:25)

Offline

#2 2016-01-04 12:26:20

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] How do I specify a custom location to install kernel updates?

mkinitcpio takes care of building / placing initramfs files.

Upon a kernel update, mkinitcpio uses /etc/mkinicpio.d/linux.preset to determine where to put the files.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-01-04 13:10:15

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] How do I specify a custom location to install kernel updates?

Forthcoming pacman 5.0 should have support for hooks, which you could use to move /boot/vmlinuz-linux to your preferred location.

Offline

#4 2016-01-04 18:20:08

sguertin
Member
Registered: 2013-12-23
Posts: 20

Re: [SOLVED] How do I specify a custom location to install kernel updates?

Thanks!

Offline

#5 2016-01-21 18:36:33

sguertin
Member
Registered: 2013-12-23
Posts: 20

Re: [SOLVED] How do I specify a custom location to install kernel updates?

For future reference, you also have to run `mkinitcpio -p linux` afterward, or this will happen on the next kernel update.

Offline

#6 2016-01-21 19:22:19

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] How do I specify a custom location to install kernel updates?

sguertin wrote:

I've done this for Debian (but not tested it) by following this.

big_smile

sguertin wrote:

Would doing it in Arch/Pacman be similar?

https://wiki.archlinux.org/index.php/EF … unt_Points

Offline

Board footer

Powered by FluxBB