Cleanup and minor improvements.

This commit is contained in:
Andreas B. Mundt 2019-05-25 10:39:32 +03:00
parent fdfd702130
commit 7404d7ace4
2 changed files with 14 additions and 3 deletions

View file

@ -60,7 +60,8 @@
echo "{{ sshpubkey }}" >> /target/home/ansible/.ssh/authorized_keys ; \
in-target chown -R ansible:ansible /home/ansible/.ssh/ ; \
in-target chmod -R og= /home/ansible/.ssh/ ; \
in-target ansible-pull --verbose --purge --extra-vars="run_in_installer=true" -i localhost, --url=git://{{ hostname }}/.git
in-target ansible-pull --verbose --purge --extra-vars="run_in_installer=true" \
-i localhost, --url=git://{{ hostname }}/.git
marker: "# {mark} ANSIBLE MANAGED BLOCK preseed/late_command"
- name: provide git repo if not available already

View file

@ -22,9 +22,14 @@
block: |
TIMEOUT 100
LABEL autoinstall
MENU LABEL Debian {{ di_dist }} (amd64) + preseed
MENU LABEL Debian {{ di_version }} (amd64) + preseed
kernel ::/d-i/n-pkg/images/{{ di_version }}/amd64/text/debian-installer/amd64/linux
append initrd=::/d-i/n-pkg/images/{{ di_version }}/amd64/text/debian-installer/amd64/initrd.gz --- auto=true priority=critical url=tftp://{{ hostname }}
#LABEL daily
#MENU LABEL Debian daily (amd64) + preseed
#kernel ::/d-i/n-a/daily/amd64/linux
#append initrd=::/d-i/n-a/daily/amd64/initrd.gz --- auto=true priority=critical url=tftp://{{ hostname }}
notify: "rebuild di-netboot-assistant menu"
- name: add auto efi boot entry to di-netboot-assistant
@ -32,8 +37,13 @@
dest: /etc/di-netboot-assistant/grub.cfg.HEAD
insertbefore: EOF
block: |
menuentry 'Debian stable (amd64) + preseed' {
menuentry 'Debian {{ di_version }} (amd64) + preseed' {
linux /d-i/n-pkg/images/{{ di_version }}/amd64/text/debian-installer/amd64/linux --- auto=true priority=critical url=tftp://{{ hostname }}
initrd /d-i/n-pkg/images/{{ di_version }}/amd64/text/debian-installer/amd64/initrd.gz
}
#menuentry 'Debian daily (amd64) + preseed' {
# linux /d-i/n-a/daily/amd64/linux --- auto=true priority=critical url=tftp://{{ hostname }}
# initrd /d-i/n-a/daily/amd64/initrd.gz
#}
notify: "rebuild di-netboot-assistant menu"