tuto2: add neteasy cmdline

This commit is contained in:
nemunaire 2018-03-06 21:01:38 +01:00 committed by Pierre-Olivier Mercier
parent df12290b78
commit d4663e816b
1 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,10 @@ files:
mode: "0644"
- path: etc/systemd/network/50-dhcp.network
contents: ""
mode: "0644"
- path: etc/systemd/network/.50-dhcp
contents: |
[Match]
Name=eth0
@ -88,6 +92,8 @@ files:
mkdir -p ${ovr_rwdata}/work
/bin/mount -n -t overlay -o upperdir=${ovr_rwdata}/data,workdir=${ovr_rwdata}/work,lowerdir=${ovr_robase} overlay ${ovr_combined} || { echo "Unable to create overlayfs."; exit 3; }
grep adlin.net=easy /proc/cmdline > /dev/null && mount --bind ${ovr_combined}/etc/systemd/network/.50-dhcp ${ovr_combined}/etc/systemd/network/50-dhcp.network
/bin/umount -n /proc
/bin/umount -n /dev