7 lines
200 B
Plaintext
7 lines
200 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
LAST_VERSION=$(basename `ls -1 /boot/vmlinuz* | tail -1 | sed 's/vmlinuz-//g'`)
|
||
|
INITRAMFS=`ls /boot/initramfs-$LAST_VERSION.img`
|
||
|
|
||
|
dracut --force --add "network" $INITRAMFS $LAST_VERSION
|