diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2020-07-20 00:45:49 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2020-07-20 00:45:49 +0000 |
commit | 462a350678cbee57e9baa25152bc7de7379f4962 (patch) | |
tree | 340106b9e56368f5c7447e30d7e979268557480e /user/dracut/dracut.easy-boot | |
parent | 3e0ffda88c14c8e19ba72c0135ee049c0fa375c8 (diff) | |
parent | 77a32d089abcb5f43da122e4b97575e671213457 (diff) | |
download | packages-462a350678cbee57e9baa25152bc7de7379f4962.tar.gz packages-462a350678cbee57e9baa25152bc7de7379f4962.tar.bz2 packages-462a350678cbee57e9baa25152bc7de7379f4962.tar.xz packages-462a350678cbee57e9baa25152bc7de7379f4962.zip |
Merge branch 'new/easy-boot' into 'master'
Adjust existing boot-related triggers and add one for dracut
See merge request adelie/packages!485
Diffstat (limited to 'user/dracut/dracut.easy-boot')
-rw-r--r-- | user/dracut/dracut.easy-boot | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/user/dracut/dracut.easy-boot b/user/dracut/dracut.easy-boot new file mode 100644 index 000000000..53c95c54e --- /dev/null +++ b/user/dracut/dracut.easy-boot @@ -0,0 +1,14 @@ +#!/bin/sh -e + +for i in /boot/vmlinu[xz]*; do + version="${i##*/vmlinu[xz]}" + # Support filenames with no version. LILO supports this, but GRUB + # doesn't (currently). + version="${version#-}" + if ! [ -d /lib/modules/"$version" ]; then + printf '>>> %s: no modules installed, skipping\n' "$version" >&2 + continue + fi + printf '>>> %s\n' "$version" >&2 + dracut --force --quiet /boot/initramfs-"$version".img "$version" +done |