Document kernel change #25

Open
opened 2023-12-08 02:18:12 +00:00 by hygienic-books · 1 comment

linux to linux-zen as an example

  • /etc/pacman.conf:
    [zfs-linux-zen]
    Server = http://kernels.archzfs.com/$repo/
    
  • paru -Sy to sync new repo
  • Install zfs for linux-zen kernel (or -Syu as in refresh package list then upgrade all packages and install the one you want)
    # Install zfs for linux-zen kernel
    # Does this automatically uninstall archzfs/zfs-linux?
    # If not do it manually
    # Does this also pull zfs-linux-zen/linux-zen and zfs-linux-zen/linux-zen-headers?
    # If not see below
    paru -S archzfs/zfs-linux-zen
    
  • Install linux-zen kernel and headers if this didn't happen automatically
    # Install kernel and header files
    # Does this automatically uninstall core/linux and core/linux-headers?
    # If not do it manually
    paru -S zfs-linux-zen/linux-zen zfs-linux-zen/linux-zen-headers
    
  • /etc/systemd/system/chmod-initramfs.service
  • /etc/systemd/system/chmod-initramfs.path
  • Clean up in /boot
  • Create /etc/mkinitcpio.d/linux-zen.preset
  • Comment out /etc/mkinitcpio.d/linux.preset
  • mkinitcpio -P
  • Restart

Also:

  • change pacman hook to new kernel name and other important packages
linux to linux-zen as an example - `/etc/pacman.conf`: ``` [zfs-linux-zen] Server = http://kernels.archzfs.com/$repo/ ``` - `paru -Sy` to sync new repo - Install zfs for linux-zen kernel (or `-Syu` as in refresh package list then upgrade all packages and install the one you want) ``` # Install zfs for linux-zen kernel # Does this automatically uninstall archzfs/zfs-linux? # If not do it manually # Does this also pull zfs-linux-zen/linux-zen and zfs-linux-zen/linux-zen-headers? # If not see below paru -S archzfs/zfs-linux-zen ``` - Install linux-zen kernel and headers if this didn't happen automatically ``` # Install kernel and header files # Does this automatically uninstall core/linux and core/linux-headers? # If not do it manually paru -S zfs-linux-zen/linux-zen zfs-linux-zen/linux-zen-headers ``` - `/etc/systemd/system/chmod-initramfs.service` - `/etc/systemd/system/chmod-initramfs.path` - Clean up in `/boot` - Create `/etc/mkinitcpio.d/linux-zen.preset` - Comment out `/etc/mkinitcpio.d/linux.preset` - `mkinitcpio -P` - Restart Also: - change pacman hook to new kernel name and other important packages
Author
Owner

Go from precompiled zfs-linux-zen/zfs-linux-zen to DKMS archzfs/zfs-dkms.

  • Install archzfs/zfs-dkms
    • This will prompt for removal of zfs-linux-zen/zfs-linux-zen
  • In /etc/pacman.conf uncomment or remove:
    [zfs-linux-zen]
    Server = http://kernels.archzfs.com/$repo/
    
    • Leaving it in sounds reasonable but this will actually remain the primary source for linux-zen and linux-zen-headers if left in at the top of the repo list in /etc/pacman.conf. Technically it'll be zfs-linux-zen/linux-zen and zfs-linux-zen/linux-zen-headers but the fact that it's coming from a different repo doesn't matter to pacman, it simply sees linux-zen and linux-zen-headers. We make this move specifically because we now want extra/linux-zen and extra/linux-zen-headers instead so the [zfs-linux-zen] repo needs to go.
Go from precompiled `zfs-linux-zen/zfs-linux-zen` to DKMS `archzfs/zfs-dkms`. - Install `archzfs/zfs-dkms` - This will prompt for removal of `zfs-linux-zen/zfs-linux-zen` - In `/etc/pacman.conf` uncomment or remove: ``` [zfs-linux-zen] Server = http://kernels.archzfs.com/$repo/ ``` - Leaving it in sounds reasonable but this will actually remain the primary source for `linux-zen` and `linux-zen-headers` if left in at the top of the repo list in `/etc/pacman.conf`. Technically it'll be `zfs-linux-zen/linux-zen` and `zfs-linux-zen/linux-zen-headers` but the fact that it's coming from a different repo doesn't matter to pacman, it simply sees `linux-zen` and `linux-zen-headers`. We make this move specifically because we now want `extra/linux-zen` and `extra/linux-zen-headers` instead so the `[zfs-linux-zen]` repo needs to go.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: quico-os-setup/arch-zbm#25
No description provided.