瀏覽代碼

predictable hostnames for virtio

main
父節點
當前提交
c9f3ed3ee8
共有 2 個檔案被更改,包括 14 行新增0 行删除
  1. +10
    -0
      tasks/main.yml
  2. +4
    -0
      templates/virtio.link.j2

+ 10
- 0
tasks/main.yml 查看文件

@@ -48,6 +48,16 @@
root_target_directory: "{{ live_build_directory }}/config/includes.chroot/"
when: live_build_serial_console == false

- name: systemd network config directory
file:
path: "{{ live_build_directory }}/config/includes.chroot/etc/systemd/network"
state: directory

- name: name policy for predictable interface names with virtio to mac
template:
src: virtio.link.j2
dest: "{{ live_build_directory }}/config/includes.chroot/etc/systemd/network/20-virtio.link"

- name: include common packages
template:
src: common.list.chroot.j2


+ 4
- 0
templates/virtio.link.j2 查看文件

@@ -0,0 +1,4 @@
[Match]
Driver=virtio_net
[Link]
NamePolicy=mac

Loading…
取消
儲存