diff --git a/README.md b/README.md index a619d746d4b7afeb87eb4fd8e9fd218a3e7558df..ab2b618f79aa02a43bb3461560657c2ec3a3fdac 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,18 @@ This package will do NOTHING if you skipped the configuration. 1. Modify `/etc/default/grub`, to set `GRUB_CMDLINE_LINUX_DEFAULT="__KERNEL_PARAMETER_MANAGED_BY_HELPER"`. 2. Modify file `/etc/shared-bootdir-helper-multi-kparam.cfg`, to set kernel parameters for each hostname. +## Usage + +Firstly, install this package. + +Secondly, if you only want to solve problem 1, you do nothing in this step. If you want to solve problem 2, follow the "What should you do" guide in Problem2. + +Thirdly, you must re-install your kernel. You may want to run `pacman -S linux`, `pacman -S linux-lts`, `pacman -S linux-surface`, or something like this. + +Lastly, you need to run `grub-mkconfig -o /boot/grub/grub.cfg` again. Now you have successfully configured this tool! Enjoy and forget it! + +You need to do nothing while upgrading your kernel in the future, because the kimage filename would not be changed. Just do what you usually do. + ## Support status ### Distributions diff --git a/aur/PKGBUILD b/aur/PKGBUILD index c3345db8c709561256ea46112ee30ae273f0e99c..33a185ef2f0bfde055326de2ae517eb815ac63db 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -21,10 +21,11 @@ sha256sums=( package() { cd "$pkgname" - mkdir -p "$pkgdir/etc" "$pkgdir/usr/bin" "$pkgdir/usr/share/libalpm/hooks" && - cp src/*.cfg "$pkgdir/etc/" && - cp src/*.sh "$pkgdir/usr/bin/" && - cp src/*.hook "$pkgdir/usr/share/libalpm/hooks/" || + mkdir -p "$pkgdir/etc" "$pkgdir/usr/bin" "$pkgdir/usr/share/libalpm/hooks" "$pkgdir/usr/share/libalpm/scripts" && + mv src/*.cfg "$pkgdir/etc/" && + mv src/hook-*.sh "$pkgdir/usr/share/libalpm/scripts/" && + mv src/*.sh "$pkgdir/usr/bin/" && + mv src/*.hook "$pkgdir/usr/share/libalpm/hooks/" || return $? } diff --git a/aur/shared-bootdir-helper.install b/aur/shared-bootdir-helper.install index a3e948c640f071349d5fc4f1a8144bbb4818941d..ae995ad087b71308013c8a62bffae7179320eada 100644 --- a/aur/shared-bootdir-helper.install +++ b/aur/shared-bootdir-helper.install @@ -2,12 +2,13 @@ post_install() { echo "***********************************shared-bootdir-helper**************************************" + echo "ATTENTION! You need to re-install kernel, and re-run grub-mkconfig to make me working. " + echo " you can read https://git.recolic.net/root/shared-bootdir-helper for more information. " + echo "" + echo "What's more: " echo "If you want to boot each kernel with different kernel parameters, " echo " you need to use the tool 'shared-bootdir-helper-multi-kparam'. " - echo " You MUST read https://git.recolic.net/root/shared-bootdir-helper " - echo "" - echo "If you're ok to boot each kernel with the same kernel parameters (in /etc/default/grub), " - echo " you need to do nothing. " + echo " You MUST read https://git.recolic.net/root/shared-bootdir-helper in this case. " echo "**********************************************************************************************" }