diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2019-11-07 13:42:05 +0100 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2019-12-03 15:47:18 +0100 |
commit | 14d6de44d12b70bba43653d10d17906772f9372e (patch) | |
tree | 400abdd8f64fdb61eaa38c0a44ba754e14bfd7f8 /tools | |
parent | 0a1ecf4928022c076c2b1275cc1369e528590da0 (diff) | |
download | vyos-build-14d6de44d12b70bba43653d10d17906772f9372e.tar.gz vyos-build-14d6de44d12b70bba43653d10d17906772f9372e.zip |
prevent 70-persistent-net.rules from being created
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/vep4600/90-vep4600.chroot | 2 | ||||
-rwxr-xr-x | tools/vep4600/vep4600 | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tools/vep4600/90-vep4600.chroot b/tools/vep4600/90-vep4600.chroot index c4bb7496..a88a7de1 100755 --- a/tools/vep4600/90-vep4600.chroot +++ b/tools/vep4600/90-vep4600.chroot @@ -9,6 +9,8 @@ rm /lib/systemd/network/99-default.link touch /lib/systemd/network/99-default.link rm /lib/udev/rules.d/65-vyatta-net.rules touch /lib/udev/rules.d/65-vyatta-net.rules +rm /lib/udev/rules.d/75-persistent-net-generator.rules +touch /lib/udev/rules.d/75-persistent-net-generator.rules echo I: Update initramfs. update-initramfs -u diff --git a/tools/vep4600/vep4600 b/tools/vep4600/vep4600 new file mode 100755 index 00000000..4d9c5748 --- /dev/null +++ b/tools/vep4600/vep4600 @@ -0,0 +1,17 @@ +#!/bin/sh -e + +PREREQS="" + +prereqs() { echo "$PREREQS"; } + +case "$1" in + prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +mkdir -p $DESTDIR/etc/systemd/network +cp -p /etc/systemd/network/*.link $DESTDIR/etc/systemd/network/ |