Skip to content

Commit

Permalink
defaultenv-2: set bootargs correctly for network boot
Browse files Browse the repository at this point in the history
The defaultenv-2 network boot script uses bootargs-ip which
hardcodes eth0 as network device. To make this work with
other nwetork devices use the "ip_route_get" command to determine
the network device used to reach the server.

Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
saschahauer committed Dec 15, 2017
1 parent 183515b commit 8201a94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
11 changes: 0 additions & 11 deletions defaultenv/defaultenv-2-base/bin/bootargs-ip

This file was deleted.

3 changes: 2 additions & 1 deletion defaultenv/defaultenv-2-base/boot/net
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ if [ -f "${oftree}" ]; then
fi

nfsroot="/home/${global.user}/nfsroot/${global.hostname}"
bootargs-ip

ip_route_get -b ${global.net.server} global.linux.bootargs.dyn.ip

initramfs="${path}/${global.user}-initramfs-${global.hostname}"
if [ -f "${initramfs}" ]; then
Expand Down

0 comments on commit 8201a94

Please sign in to comment.