4e4a88a387
This element will install the network modules for dracut and regenerate the initramfs. The network support would allow us to configure the network of the image via kernel cmdline instead of injecting files into the image. Change-Id: I829405127e77aec80b99ac8dd2032cb0c6d81063
7 lines
200 B
Bash
Executable File
7 lines
200 B
Bash
Executable File
#!/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
|