Fix/remove leftover.
This commit is contained in:
parent
291866eb93
commit
d9d36d5c92
3 changed files with 2 additions and 56 deletions
|
@ -103,7 +103,7 @@
|
||||||
:{{ item.item.key }}
|
:{{ item.item.key }}
|
||||||
echo Booting Debian GNU/Linux {{ item.item.key }} NFS
|
echo Booting Debian GNU/Linux {{ item.item.key }} NFS
|
||||||
kernel ${210:string}d-i/n-live/{{ item.item.key }}/live/vmlinuz-{{ item.stdout }} \
|
kernel ${210:string}d-i/n-live/{{ item.item.key }}/live/vmlinuz-{{ item.stdout }} \
|
||||||
initrd=initrd.img-5.10.0-13-amd64 {{ boot_params|join(' ') }} \
|
initrd=initrd.img-{{ item.stdout }} {{ boot_params|join(' ') }} \
|
||||||
nfsroot={{ ansible_default_ipv4.address }}:/var/lib/tftpboot/d-i/n-live/{{ item.item.key }}/
|
nfsroot={{ ansible_default_ipv4.address }}:/var/lib/tftpboot/d-i/n-live/{{ item.item.key }}/
|
||||||
initrd ${210:string}d-i/n-live/{{ item.item.key }}/live/initrd.img-{{ item.stdout }}
|
initrd ${210:string}d-i/n-live/{{ item.item.key }}/live/initrd.img-{{ item.stdout }}
|
||||||
boot
|
boot
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
:{{ item }}
|
:{{ item }}
|
||||||
echo Booting Debian GNU/Linux EDU LIVE NFS
|
echo Booting Debian GNU/Linux EDU LIVE NFS
|
||||||
kernel ${210:string}d-i/n-live/{{ item }}/live/vmlinuz \
|
kernel ${210:string}d-i/n-live/{{ item }}/live/vmlinuz \
|
||||||
initrd=initrd.img-5.10.0-13-amd64 {{ boot_params|join(' ') }} \
|
initrd=initrd.img {{ boot_params|join(' ') }} \
|
||||||
nfsroot={{ ansible_default_ipv4.address }}:/var/lib/tftpboot/d-i/n-live/{{ item }}/
|
nfsroot={{ ansible_default_ipv4.address }}:/var/lib/tftpboot/d-i/n-live/{{ item }}/
|
||||||
initrd ${210:string}d-i/n-live/{{ item }}/live/initrd.img
|
initrd ${210:string}d-i/n-live/{{ item }}/live/initrd.img
|
||||||
boot
|
boot
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
---
|
|
||||||
- name: install packages
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
- live-build
|
|
||||||
state: latest # noqa package-latest
|
|
||||||
|
|
||||||
- name: prepare live-build directory
|
|
||||||
file:
|
|
||||||
path: /opt/live-build/
|
|
||||||
state: directory
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: copy build script
|
|
||||||
template:
|
|
||||||
src: livebuilder.sh
|
|
||||||
dest: /usr/local/sbin/
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: copy live-build configuration
|
|
||||||
copy:
|
|
||||||
src: gnome-edu
|
|
||||||
dest: /opt/live-build/
|
|
||||||
local_follow: false
|
|
||||||
notify: build image
|
|
||||||
|
|
||||||
- name: prepare debian live boot loader ipxe
|
|
||||||
blockinfile:
|
|
||||||
path: /etc/di-netboot-assistant/ipxemenu.HEAD
|
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK gnome-edu"
|
|
||||||
block: |
|
|
||||||
:gnome-edu
|
|
||||||
echo Booting Debian GNU/Linux EDU LIVE
|
|
||||||
kernel ${210:string}d-i/n-live/gnome-edu/live/vmlinuz \
|
|
||||||
initrd=initrd.img-5.10.0-13-amd64 {{ boot_params|join(' ') }} \
|
|
||||||
nfsroot={{ ansible_default_ipv4.address }}:/var/lib/tftpboot/d-i/n-live/gnome-edu/
|
|
||||||
initrd ${210:string}d-i/n-live/gnome-edu/live/initrd.img
|
|
||||||
boot
|
|
||||||
notify: rebuild di-netboot menu
|
|
||||||
|
|
||||||
- name: prepare debian live boot loader grub
|
|
||||||
blockinfile:
|
|
||||||
path: /etc/di-netboot-assistant/grub.cfg.HEAD
|
|
||||||
insertbefore: "^menuentry 'Boot from local disk..'"
|
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK gnome-edu"
|
|
||||||
block: |
|
|
||||||
menuentry 'Debian GNU/Linux Live gnome-edu' {
|
|
||||||
linux (http,{{ ansible_default_ipv4.address }})/d-i/n-live/gnome-edu/live/vmlinuz \
|
|
||||||
{{ boot_params|join(' ') }} \
|
|
||||||
nfsroot={{ ansible_default_ipv4.address }}:/var/lib/tftpboot/d-i/n-live/gnome-edu/
|
|
||||||
initrd (http,{{ ansible_default_ipv4.address }})/d-i/n-live/gnome-edu/live/initrd.img
|
|
||||||
}
|
|
||||||
notify: rebuild di-netboot menu
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue