1 |
Am 12.06.2013 17:53, schrieb Canek Peláez Valdés: |
2 |
|
3 |
> I use this script to generate my initramfs: |
4 |
> |
5 |
> -------------------------------------------------------------------------------- |
6 |
> #!/bin/sh |
7 |
> |
8 |
> KVER=$(readlink /usr/src/linux | sed "s/^linux-//g") |
9 |
> |
10 |
> echo "Creating initrd for kernel version ${KVER}..." |
11 |
> |
12 |
> FIRMWARE="" |
13 |
> |
14 |
> for i in $(find /lib64/firmware -type f); do |
15 |
> FIRMWARE+=" ${i}" |
16 |
> done |
17 |
> |
18 |
> /usr/bin/dracut -f -H -I "${FIRMWARE}" /boot/initrd-${KVER} ${KVER} |
19 |
> -------------------------------------------------------------------------------- |
20 |
> |
21 |
> I use this command to generate my GRUB2 config: |
22 |
> |
23 |
> grub2-mkconfig -o /boot/grub2/grub.cfg |
24 |
> |
25 |
> Everything just works. However, I don't use LVM, and I don't use the |
26 |
> systemd-love overlay. |
27 |
|
28 |
Nice script, thanks! |
29 |
|
30 |
I will have to adapt it a bit to be able to use it with |
31 |
|
32 |
linux -> /usr/src/linux-git .... |
33 |
|
34 |
But for stuff like gentoo-sources it just works, yes! |
35 |
|
36 |
Stefan |