dnsmasq not loading at boot

Erich Titl <[email protected]> Sat, 10 Feb 2024 19:35:43 +0100
Newsgroups gmane.linux.leaf.user
Message-ID <[email protected]>
Hi Folks

I had to reboot my box today and found that all of a sudden I had no dns 
access.

Why did I not notice this earlier?... Simply because until recently I 
used a different DNS service for my internal network.

OK here are my findings

- dnsmasq is not started from within the boot process, e.g. linuxrc
- dnsmasq is in the LRP variable in leaf.cfg
- dnsmasq is _not_ added to /var/lib/lrpkg/packages by linuxrc
- it does not matter where in the LRP variable dnsmasq is sitting
- dnsmasq is loading fine when called from the command line
- there is no error showing up in the /*.err files

more info:

debug shows

Feb 10 15:01:57 LEAFCFG=UUID=08242a5d-8286-4fa9-b06b-ef51effdfc69
Feb 10 15:01:57 PKGPATH=UUID=75cd7dc0-2514-4ea0-a9e0-7664e7813b8d

which makes me think the bootloader has different LEAFCFG PKGPATH 
variables.

blkid shows that the two UUIDs map to
/dev/mmcblk0p2: UUID="75cd7dc0-2514-4ea0-a9e0-7664e7813b8d"
/dev/mmcblk0p3: UUID="08242a5d-8286-4fa9-b06b-ef51effdfc69"

now configuring leaf.cfg on /dev/mmcblk0p3 including dnsmasq makes it 
install at boot

In the syslinux.cfg file for the LEAFCFG parameter one can find that the 
PKGPATH indeed shows a value for the third partition on the disk, e.g. a 
misconfiguration.

It is possible that the install procedure which configures all this is 
broken.

This is valid for my installation
gatekeeper# cat /etc/motd
LEAF Bering-uClibc 7.1.0 Rev 1 uClibc 1.0.38  at gatekeeper
Linux 5.10.52-x86_64 #1 SMP Mon Aug 16 19:57:08 CEST 2021

cheers

ET

-- 
„Wer von seinem Tag nicht zwei Drittel für sich hat, ist ein Sklave.“
―Friedrich Nietzsche

------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQS8miW8OVQ7yMAkjYq31P+dBbgKFgUCZcfB/wUDAAAAAAAKCRC31P+dBbgKFrYN
AKCu8rZRzDu4rDT6kppKsB6pkE97kwCgzsRIbm2K0iH0DPgcV64AT/oJvyc=
=/Jjz
-----END PGP SIGNATURE-----