From: Martin Petzold <martin.petzold@tavla.de>
To: iwd@lists.linux.dev
Subject: Using bind mount for /var/lib/iwd results in zero directory (and no links) and no connections stored
Date: Sat, 9 Mar 2024 22:11:03 +0100 [thread overview]
Message-ID: <07009e2a-3ad7-4a8c-bcbf-a665a19bd03f@tavla.de> (raw)
I want to use bind mounts for /var/lib/iwd. However, I realized that
sometimes (quit often and reproducible) a connection is not stored (I am
working on an embedded device and we are talking about a single
connection). I also realized that the directory has size zero (0) has no
links and this is different to my other bind mounts.
Just now I cannot test, how the situation is on first boot (early). As I
said, the situation comes up at some time.
This is a fundamental issue for me. What is going wrong?
#####
$ sudo ls -l /var/lib/
insgesamt 76
drwxr-xr-x 5 root root 4096 24. Feb 17:05 apt
drwxr-xr-x 3 root root 4096 8. Feb 2023 bluetooth <- also bind mount
with same configuration (files are written)
drwxr-xr-x 2 root root 4096 3. Jul 2023 dbus
drwxr-xr-x 7 root root 4096 9. Mär 20:44 dpkg
drwxr-xr-x 2 root root 4096 22. Feb 2023 git
drwx------ 0 root root 0 9. Mär 20:47 iwd <- bind mount with same
configuration (files are NOT written)
drwxr-xr-x 2 root root 4096 9. Mär 00:00 logrotate
drwxr-xr-x 2 root root 4096 2. Apr 2023 misc
drwxr-xr-x 2 root root 4096 3. Jul 2023 pam
drwx------ 3 root root 4096 3. Jul 2023 polkit-1
drwx------ 2 root root 4096 3. Jul 2023 private
drwxr-xr-x 2 root root 4096 3. Jul 2023 python
drwxr-xr-x 2 root root 4096 3. Jul 2023 rauc <- also bind mount with
same configuration (files are written)
drwxr-xr-x 3 root root 4096 3. Jul 2023 sudo
drwxr-xr-x 11 root root 4096 3. Jul 2023 systemd
drwxr-xr-x 2 tss tss 4096 30. Nov 2020 tpm
drwxr-xr-x 3 root root 4096 3. Jul 2023 ucf
drwxr-xr-x 2 root root 4096 28. Jul 2023 xkb
#####
UUID=09ad77a3-80ed-4e27-8014-aa7bde4da14c / ext4
defaults 0 1
LABEL=system /system ext4 defaults 0 2
LABEL=user /home ext4 defaults 0 2
LABEL=boot /boot/script ext4 defaults 0 2
/system/var/lib/bluetooth /var/lib/bluetooth none defaults,bind 0 0
/system/var/lib/iwd /var/lib/iwd none defaults,bind 0 0
/system/var/lib/rauc /var/lib/rauc none defaults,bind 0 0
#####
$ sudo iwctl --passphrase "<password>" station "wlan0" connect "<network>"
-> Connection to network is up, but NO connection is saved - no file
exist (however, sometimes it is saved. Maybe only at the beginning and
then not any more)
#####
Thanks,
Martin
next reply other threads:[~2024-03-09 21:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-09 21:11 Martin Petzold [this message]
2024-03-11 15:25 ` Using bind mount for /var/lib/iwd results in zero directory (and no links) and no connections stored Martin Petzold
2024-03-11 18:19 ` Bryce Johnson
2024-03-11 18:40 ` Martin Petzold
2024-03-12 3:02 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=07009e2a-3ad7-4a8c-bcbf-a665a19bd03f@tavla.de \
--to=martin.petzold@tavla.de \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).