Hi Guys!
I want to build VyOS with a preloaded config. Do you guys know where I can put the default configuration? Is it possible?
Thanks!
Hi Guys!
I want to build VyOS with a preloaded config. Do you guys know where I can put the default configuration? Is it possible?
Thanks!
Hello @fegauthier,
There are 2 ways to reach your goal:
Modify configuration file before building ISO
Edit this file vyos-build/config.boot.default at current · vyos/vyos-build · GitHub and build ISO
Modify configuration in an existing ISO
mkdir /tmp/iso
mount -o loop vyos-...-amd64.iso /tmp/iso
cp -a /tmp/iso/* /tmp/iso2
mkdir /tmp/root
sudo mount -o loop /tmp/iso/live/filesystem.squashfs /tmp/root
/tmp/root
to another folder for modificationsudo cp -a /tmp/root/* /tmp/root2
/tmp/root2/opt/vyatta/etc/config.boot.default
mksquashfs /tmp/root2 /tmp/iso2/live/filesystem.squashfs -noappend
genisoimage -o vyos-out.iso -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -iso-level 3 -J \
/tmp/iso2
isohybrid vyos-out.iso
Thanks! I will give it a try!
Is there a way to generate encrypted-password or simple salted hash will do?