From 08f5ca5b50661258964f7b36b6cc0892bf8c65e5 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sun, 23 Dec 2018 02:18:01 +0100 Subject: Add kernels/linux-libre-x86_64 With this kernel, on machines with an x86_64 compatible CPU, you can run an i686 userspace with an x86_64 kernel. This for instance enables to use the same i686 rootfs on computers with 32bit and 64bit CPUs, while still being able to take advantage of a 64bit kernel on the machines that supports it. The users will then need to force i686 in pacman.conf like that: [options] Architecture = i686 They will also need to select the right kernel at boot. Signed-off-by: Denis 'GNUtoo' Carikli --- kernels/linux-libre-x86_64/linux.install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 kernels/linux-libre-x86_64/linux.install (limited to 'kernels/linux-libre-x86_64/linux.install') diff --git a/kernels/linux-libre-x86_64/linux.install b/kernels/linux-libre-x86_64/linux.install new file mode 100644 index 000000000..19a43a524 --- /dev/null +++ b/kernels/linux-libre-x86_64/linux.install @@ -0,0 +1,14 @@ +post_upgrade() { + if [ "$(uname -m)" = "x86_64" ] || [ "$(uname -m)" = "i686" ]; then + if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then + echo "WARNING: /boot appears to be a separate partition but is not mounted." + fi + fi +} + +post_remove() { + rm -f boot/initramfs-%PKGBASE%.img + rm -f boot/initramfs-%PKGBASE%-fallback.img +} + +# vim:set ft=sh ts=8 sts=2 sw=2 et: -- cgit v1.2.3