login-validator: Append shadow to original challenge archive

This commit is contained in:
nemunaire 2022-02-26 21:57:15 +01:00
parent f317d11fac
commit 59abc217d1
4 changed files with 24 additions and 5 deletions

View file

@ -20,7 +20,7 @@ menu title Welcome {{ .username }} to the EPITA ADvanced LINux administration co
LABEL challenge
MENU LABEL ^Enter Challenge
KERNEL ../bzImage
INITRD ../challenge-initrd.img
INITRD ../s/{{ .initrd }}.img
APPEND console=tty0 adlin.login={{ .username }} adlin.key={{ .pkey }} adlin.ip={{ .ip }} quiet
text help
You are currently identified as {{ .username }}.

View file

@ -30,7 +30,7 @@ echo -n Kernel command line: ${}
read cmdline || goto start
kernel tftp://${next-server}/bzImage ${cmdline} adlin.login={{ .username }} adlin.key={{ .pkey }} adlin.ip={{ .ip }}
initrd tftp://${next-server}/challenge-initrd.img
initrd tftp://${next-server}/s/{{ .initrd }}.img
boot || goto failed
goto start