Try to use initramfs IP autoconfig

Trying to get rid of the current (shitty) manual IP configuration
process. This should enable you to specify on the kernel command line a
parameter like ip=:::::eth0:dhcp and the initramfs scripts would take
care of acquiring a DHCP address instead of static configuration in the
script itself.
This commit is contained in:
Johannes Bauer 2016-09-24 16:02:40 +02:00
parent 6089d98721
commit 58a73a552f

View File

@ -20,12 +20,14 @@ case $1 in
;;
esac
ETH_DEV="eno1"
ETH_IP="192.168.1.29"
ETH_NETMASK="255.255.255.0"
. /scripts/functions
configure_networking
/bin/ifconfig "$ETH_DEV" up "$ETH_IP" netmask "$ETH_NETMASK"
/bin/ip route add default dev "$ETH_DEV"
#ETH_DEV="eno1"
#ETH_IP="192.168.1.29"
#ETH_NETMASK="255.255.255.0"
#/bin/ifconfig "$ETH_DEV" up "$ETH_IP" netmask "$ETH_NETMASK"
#/bin/ip route add default dev "$ETH_DEV"
/sbin/luksrku --server-mode -v -k /etc/luksrku-server.bin
exit 0