0 Members and 2 Guests are viewing this topic.
Hm yeah I don't upgrade often... Once in a while though. Each time I have to update the kernel I have to copy some files manually to another partition so it boots correctly...
#!/usr/bin/env bashwhile [[ -d "/proc/$PPID" ]]; do sleep 1doneif [[ "rw" != "r$(/usr/bin/mount | /usr/bin/grep '/dev/sda4' | /usr/bin/sed 's/.*(r\(.\).*/\1/')" ]]; then /usr/bin/umount /dev/sda4; /usr/bin/fsck.hfsplus /dev/sda4; /usr/bin/mount /dev/sda4 echo ' -> Remounted /dev/sda4 as rw [kernel-copy]'fi/usr/bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz.efi/usr/bin/cp -f /boot/initramfs-linux.img /boot/efi/EFI/arch/initramfs-arch.img/usr/bin/cp -f /boot/initramfs-linux-fallback.img /boot/efi/EFI/arch/initramfs-arch-fallback.imgecho ' -> Synced kernel with ESP [kernel-copy]'
#!/usr/bin/env bashbuild() { /root/kernel-copy.sh &}help() { cat <<HELPEOFThis hook waits for mkinitcpio to finish and copies the finished ramdisk and kernel to my external driveHELPEOF}
shmibs: What WM is that? It looks like dwm.
Thanks bb010g, I'll try this out before next time I upgrade (with the necessary modifications obviously, because I have no EFI, but that should work ).
Quote from: Juju on May 03, 2014, 01:46:11 amThanks bb010g, I'll try this out before next time I upgrade (with the necessary modifications obviously, because I have no EFI, but that should work ).I used the /etc/fstab way and mounted/binded /boot to the place where I have to put the kernel. I guess it works.