summaryrefslogtreecommitdiff
path: root/user/dracut/dracut.easy-boot
blob: 53c95c54e9c8265e1c80cf4c843cb8ae9ba3b5b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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