ArmbianHelper changed the topic of #armbian to: armbian - Linux for ARM development boards | www.armbian.com | Github: github.com/armbian | Commits: #armbian-commits | Developer talk: #armbian-devel | Forum feed: #armbian-rss | Off-Topic: #armbian-offtopic | Logs: -> irc.armbian.com
alekksander has quit [Quit: Konversation terminated!]
Toasty has quit []
crabbedhaloablut has quit []
califax has quit [Remote host closed the connection]
califax has joined #armbian
archetech has quit [Quit: Konversation terminated!]
xgpt has quit [Quit: The Lounge - https://thelounge.chat]
archetech has joined #armbian
xgpt has joined #armbian
archetech has quit [Quit: Konversation terminated!]
lyri has quit [Ping timeout: 256 seconds]
lyri has joined #armbian
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian
archetech has joined #armbian
xgpt has quit [Quit: The Lounge - https://thelounge.chat]
xgpt has joined #armbian
lyri has quit [Ping timeout: 245 seconds]
lyri has joined #armbian
lyri has quit [Ping timeout: 245 seconds]
lyri has joined #armbian
lyri has quit [Ping timeout: 252 seconds]
lyri has joined #armbian
lyri has quit [Ping timeout: 256 seconds]
lyri has joined #armbian
lyri has quit [Ping timeout: 245 seconds]
lyri has joined #armbian
xgpt has quit [Quit: The Lounge - https://thelounge.chat]
xgpt has joined #armbian
sally has quit [Remote host closed the connection]
jclsn has quit [Ping timeout: 256 seconds]
jclsn has joined #armbian
<DC-IRC> [Discord] <Werner> You can get insights here what it does
javabean has quit [Read error: Connection reset by peer]
javabean has joined #armbian
buzzmarshall has quit [Quit: Konversation terminated!]
lyri has quit [Remote host closed the connection]
lyri has joined #armbian
lyri has quit [Remote host closed the connection]
lyri has joined #armbian
junaid_ has joined #armbian
crabbedhaloablut has joined #armbian
sally has joined #armbian
norton has joined #armbian
alekksander has joined #armbian
lyri has quit [Remote host closed the connection]
lyri has joined #armbian
lyri has quit [Remote host closed the connection]
lyri has joined #armbian
junaid_ has quit [Remote host closed the connection]
lyri has quit [Remote host closed the connection]
zeemate has joined #armbian
wd has quit [Quit: WeeChat 4.0.4]
archetech has quit [Quit: Leaving]
arch3r has quit [Quit: bye]
arch3r has joined #armbian
arch3r has quit [Quit: bye]
arch3r has joined #armbian
wd has joined #armbian
Mangix has quit [Read error: Connection reset by peer]
Mangix has joined #armbian
wd has quit [Quit: WeeChat 4.0.4]
junaid_ has joined #armbian
wd has joined #armbian
zeemate has quit [Ping timeout: 240 seconds]
jantones has joined #armbian
junaid_ has quit [Remote host closed the connection]
lyri has joined #armbian
lyri has quit [Remote host closed the connection]
lyri has joined #armbian
junaid_ has joined #armbian
junaid_ has quit [Remote host closed the connection]
buzzmarshall has joined #armbian
<DC-IRC> [OFTC] <mjt> hi here! It's not a large crowd in there.. :)
<DC-IRC> [OFTC] <mjt> trying to build a first image, cloned git repo (v23.11 branch), running ./compile.sh, and it almost immediately fails:
<DC-IRC> [OFTC] <mjt> ?] Directory /armbian/.tmp (main temporary dir) is mounted [ from '/dev/nvme0n1p3[/@home/mjt/.local/share/containers/storage/volumes/90e2a57934a1d5869f9ecf933c22da7cb488f139e801db954b1ef6c00c3b5835/_data]' with options 'rw,nosuid,nodev,relatime,compress=zstd:5,ssd,space_cache=v2,subvolid=258,subvol=/@home' ]
<DC-IRC> [OFTC] <mjt> where does it get this mount info? mount | grep /home gives:
<DC-IRC> [OFTC] <mjt> /dev/nvme0n1p3 on /home type btrfs (rw,nosuid,relatime,compress=zstd:5,ssd,space_cache=v2,subvolid=258,subvol=/@home)
<DC-IRC> [OFTC] <mjt> (yes I remounted it with -o remount,dev)
<DC-IRC> [OFTC] <mjt> it's probably not the right place to ask this question though
<DC-IRC> [OFTC] <mjt> there's also a lot of errors at cleanup stage after the build failure:
<DC-IRC> [OFTC] <mjt> /build/tmp/armbian/lib/functions/logging/export-logs.sh: line 119: /build/tmp/armbian/output/logs/log-docker-9c277fb4-adde-40b1-9665-06d3aefd58e7.log.ans: Permission denied
zeemate has joined #armbian
<DC-IRC> [OFTC] <mjt> this one looks like a bug in armbian build script
<DC-IRC> [OFTC] <mjt> (running stuff inside/outside the container)
<DC-IRC> [Discord] <nicod_sbc> If you've got a desktop then install or open gnome-disk-utility, select the correct partition and go to mount options. There manually add the drive and add the options you need.
<DC-IRC> [OFTC] <mjt> heh
<DC-IRC> [Discord] <nicod_sbc> "with options 'rw,nosuid,nodev,relatime,compress=zstd:5,ssd,space_cache=v2,subvolid=258,subvol=/@home"
<DC-IRC> [OFTC] <mjt> I can edit /etc/fstab (already done) and/or mount -o remount without gui utilitles
<DC-IRC> [OFTC] <mjt> both current mount and fstab does not list nodev anymore
flyback has quit [Ping timeout: 245 seconds]
<DC-IRC> [OFTC] <mjt> restarted podman (both user and system service) after editing fstab and remounting /home, but it still has nodev somewhere
<DC-IRC> [Discord] <Werner> The oftc channel has been added quite recently. But no worries about the crowd. Everything is bridged to the bigger channels 😉
<DC-IRC> [Discord] <viraniac> @mjt Its best to provide full log file when reporting errors. Its not possible to determine where in the script you are seeing errors with the information that you have provided
<DC-IRC> [Discord] <Werner> Pastebin services help a lot
<DC-IRC> [OFTC] <mjt> well, I found the check in source (lib/functions/host/host-utils.sh), lemme see
<DC-IRC> [OFTC] <mjt> findmnt -T /home/mjt --output OPTIONS --raw --notruncate --noheadings -- this shows it w/o nodev. So it must be some podman trickery in a container
<DC-IRC> [Discord] <viraniac> Whats your host OS?
<DC-IRC> [Discord] <nicod_sbc> I think it's because he's mounting with nodev or without...
<DC-IRC> [OFTC] <mjt> originally my /home has been mounted nodev, but I removed it now and remounted already, - podman still has it with nodev somewhere.
<DC-IRC> [Discord] <nicod_sbc> You have that when using a mounted drive, I know to use gnome-disks to fix it. No idea how you do it with fstab.
<DC-IRC> [Discord] <nicod_sbc> Must be some word you need to add.
<DC-IRC> [OFTC] <mjt> gnome-disks already shows it without nodev for your pleasure ;)
<DC-IRC> [OFTC] <mjt> (tho I don't have it anyway)
<DC-IRC> [OFTC] <mjt> well, I can reboot for sure (with no nodev in fstab). it'd be nice to find out where it's "cached" though
<DC-IRC> [Discord] <nicod_sbc> What do you use as main drive? An sd-card or eMMC?
<DC-IRC> [OFTC] <mjt> it's in the mount, - nvme
<DC-IRC> [OFTC] <mjt> ah, for the board, - it's new, not used anything yet
<DC-IRC> [Discord] <nicod_sbc> On what are you building?
<DC-IRC> [OFTC] <mjt> I'm trying to find out how the build actually works
<DC-IRC> [OFTC] <mjt> to be able to - for one - change filesystem type and to omit resizing the filesystem to whole storage
<DC-IRC> [Discord] <nicod_sbc> That's a script that runs as first thing it boots to resize partition.
<DC-IRC> [OFTC] <mjt> sure. I found it after booting the system for the first time, when it is already too late
<DC-IRC> [Discord] <nicod_sbc> Why? You don't want it to resize at boot?
lyri has quit [Ping timeout: 256 seconds]
<DC-IRC> [Discord] <Werner> Maybe this helps
lyri has joined #armbian
<DC-IRC> [OFTC] <mjt> I was thinkin about how to change filesystem type. I can create a new filesystem, copy things there and try to boot into it, convert main filesystem, and boot from there. But once the only partition is expanded to whole device, it's impossible to do
<DC-IRC> [OFTC] <mjt> (extfs can't be shrunk online)
<DC-IRC> [Discord] <nicod_sbc> Not sure how you do that, I know you can when you've got an sd-card and want to install to eMMC. Then you can choose what filesystem when using armbian-install.
<DC-IRC> [Discord] <viraniac> change file system type as in you want to use something else like btrfs or you are planning to use something like lvm?
<DC-IRC> [OFTC] <mjt> just btrfs
<DC-IRC> [Discord] <viraniac> Once you fix your build system, add ROOTFS_TYPE=btrfs to your ./compile command line
<DC-IRC> [OFTC] <mjt> I don;'t remember there was an option for the filesystem.. maybe I did overlook it. I *think* (it was a while ago) there was only copy (from sd to emmc) possible.
<DC-IRC> [Discord] <viraniac> it wil get you an image that uses btrfs instead of ext4
<DC-IRC> [OFTC] <mjt> viraniac: for that to work ./compile shoudl work first ;)
<DC-IRC> [OFTC] <mjt> instead of failing right away at the very first step
<DC-IRC> [Discord] <viraniac> yes, thats why I added - Once you fix your build system 😉
<DC-IRC> [OFTC] <mjt> I asked in #podman about where it caches the filesystem mount options
<DC-IRC> [Discord] <nicod_sbc> Try building on your root filesystem and not a mounted device, then you'll know if it's the mount...
<DC-IRC> [OFTC] <mjt> podman still uses images in ~/.local/containers/
<DC-IRC> [OFTC] <mjt> and my / filesystem is also mounted with nodev
<DC-IRC> [OFTC] <mjt> (dev is only needed for /dev dev(tmp)fs these days)
<DC-IRC> [Discord] <viraniac> Whats the OS you are using on your build host?
<DC-IRC> [OFTC] <mjt> linux
<DC-IRC> [OFTC] <mjt> debian bookworm
<DC-IRC> [Discord] <nicod_sbc> use jammy
<DC-IRC> [OFTC] <mjt> lol
<DC-IRC> [OFTC] <mjt> what's the difference?
<DC-IRC> [Discord] <nicod_sbc> will run faster. Debian needs docker to work.
<DC-IRC> [Discord] <viraniac> install docker and see if it resolves the issue
<DC-IRC> [Discord] <nicod_sbc> Maybe not anymore, not sure...
<DC-IRC> [OFTC] <mjt> ok. So. In order to build armbian. I need to 1) backup my current OS. 2). Install ubuntu. 3) Build armbian "faster". 4) restore my current system. That's faster indeed ;))
<DC-IRC> [OFTC] <mjt> debian and ubuntu is very similar in this context, fwiw
<DC-IRC> [Discord] <Werner> Or use a VM as suggested in the documentation
<DC-IRC> [OFTC] <mjt> rebooting to get rid of this podman "mount cache"..
<DC-IRC> [Discord] <nicod_sbc> The documentation is very outdated, needs some work but I forgot who I had to work on it with...
<DC-IRC> [Discord] <nicod_sbc> But vm should work too, and probably faster than docker.
<DC-IRC> [OFTC] <mjt> is it using qemu?
<DC-IRC> [Discord] <tenkawa42> if gnome-disks is getting involved.... its the cursed gvfs issue
<DC-IRC> [Discord] <tenkawa42> He needs to turn off automounting media more than likely on his desktop de
<DC-IRC> [Discord] <tenkawa42> It has plagued people for years
<DC-IRC> [Discord] <nicod_sbc> He doesn't have a desktop and doesn't use gnome-disks
<DC-IRC> [Discord] <nicod_sbc> Is what I guess...
<DC-IRC> [Discord] <tenkawa42> Then why was it being discussed?
<DC-IRC> [OFTC] <mjt> So, it looks like I found where nodev comes from
<DC-IRC> [Discord] <nicod_sbc> Cause you can fix an issue like this with gnome-disks...
<DC-IRC> [OFTC] <mjt> it is podman default
<DC-IRC> [OFTC] <mjt> podman adds `nodev,nosuid' to all mounts by default
<DC-IRC> [Discord] <tenkawa42> @nicod_sbc gvfs does nothing but "cause" problems... I've never seen it fix them
<DC-IRC> [Discord] <nicod_sbc> That would explain it.
<DC-IRC> [Discord] <nicod_sbc> gvfs has nothing to do with this.
<DC-IRC> [OFTC] <mjt> neither is gnome-disks with mount options of actual /home mounts
<DC-IRC> [OFTC] <mjt> mount options are coming from fstab (by mount command). gnome-disks is just an unnecessary extra layer on top of that
<DC-IRC> [OFTC] <mjt> but ok
<DC-IRC> [Discord] <nicod_sbc> Yeah, it just adjusts fstab, but I use it because I'm lazy and it works faster...
<DC-IRC> [OFTC] <mjt> git grep \\bmount
<DC-IRC> [OFTC] <mjt> sorry miswin
<DC-IRC> [Discord] <tenkawa42> actually its not... it creates files and settings in ~user/.gvfs as well
<DC-IRC> [Discord] <tenkawa42> and if the de is setup for it... hooks in /run
<DC-IRC> [Discord] <tenkawa42> it is "much" more intrusive than it looks
<DC-IRC> [OFTC] <mjt> nicod_sbc: I'm too lazy to run gnome-disks.. it's *way* faster to use vi /etc/fstab and/or sed -i, or just a mere mount -o remount,newoptions
<DC-IRC> [OFTC] <mjt> ;)
<DC-IRC> [Discord] <tenkawa42> mjt: there "should" be the normal yeah fstab automounter
<DC-IRC> [Discord] <tenkawa42> I was thinking what you were
<DC-IRC> [Discord] <tenkawa42> you really only "should" need fstab
<DC-IRC> [Discord] <tenkawa42> let me check something
<DC-IRC> [OFTC] <mjt> sigh. so.. where's the "main temporary dir" is being mounted?
<DC-IRC> [Discord] <tenkawa42> *defers to @nicod_sbc or @viraniac for that.. I haven't dug into the build script in a while*
<DC-IRC> [Discord] <tenkawa42> afk.. need to run for a bit
<DC-IRC> [OFTC] <mjt> WORKDIR_BASE_TMP it is
<DC-IRC> [Discord] <tenkawa42> back... house renevation projects are... neverending
<DC-IRC> [Discord] <tenkawa42> (especially for a 110 year old house)
obinou has left #armbian [http://quassel-irc.org - Discuter simplement. Partout.]
<DC-IRC> [OFTC] <mjt> why it's said a vm build is faster than docker build?
<DC-IRC> [OFTC] <mjt> switching from podman-docker wrapper to actual docker fixed that particular failure. It should be rather trivial to add podman support, - the only thing needed is to add a `dev' mount option for them "main tmp dir". I can't find where it gets mounted.
<DC-IRC> [OFTC] <mjt> I can't continue with docker though, as it just removed my firewall
<DC-IRC> [OFTC] <mjt> it replaced working nft (netfilter) rules with non-working iptables
<DC-IRC> [OFTC] <mjt> network within docker containers doesn't work. it worked just fine in podman
<DC-IRC> [OFTC] <mjt> (it was one of the reasons I ditched docker a few years back)
<DC-IRC> [Discord] <Werner> Feel free to contribute podman support
<DC-IRC> [OFTC] <mjt> the only thing needed seems to be to add `dev' mount option for the main temp dir
<DC-IRC> [OFTC] <mjt> I can't find where it's mounted
<DC-IRC> [Discord] <viraniac> how about removing nodev from /etc/containers/storage.conf or wherever that storage.conf is located
c0rnelius has joined #armbian
<DC-IRC> [OFTC] <mjt> I don't have storage.conf :)
<DC-IRC> [OFTC] <mjt> (nowhere on my system)
<DC-IRC> [OFTC] <mjt> https://docs.podman.io/en/latest/markdown/podman-run.1.html says "By default volumes are mounted with nodev"
<DC-IRC> [Discord] <viraniac> do you have containers-storage.conf?
<DC-IRC> [OFTC] <mjt> viraniac: nope
<DC-IRC> [OFTC] <mjt> no *storage.conf on whole system
<DC-IRC> [Discord] <viraniac> try creating one then..
<DC-IRC> [Discord] <viraniac> with `mountopt = dev`
<DC-IRC> [Discord] <viraniac> put dev in double quotes
<DC-IRC> [Discord] <viraniac> This should be the content I think, based on podmans github repository
<DC-IRC> [Discord] <viraniac> ```[storage.options]
<DC-IRC> [Discord] <viraniac> mountopt = "dev"```
<DC-IRC> [OFTC] <mjt> this file seems to be part of containers-storage package which is not installed on my system..
<DC-IRC> [OFTC] <mjt> aha. it is containers-storage.conf. storage.conf is podman
<DC-IRC> [OFTC] <mjt> had to find out a few details for other options in this file (in particular, [storage].driver="vfs"). Doesn't help, it is still mounted with nodev.
<DC-IRC> [Discord] <viraniac> Does this helps? - https://github.com/containers/podman/issues/19563
<DC-IRC> [Discord] <viraniac> I mean using options similar to https://github.com/containers/podman/issues/19563#issuecomment-1671355205 while keeping mountopts = dev
<DC-IRC> [OFTC] <mjt> heh yeah I was already creating storage.conf from there, adding mountopt.. let's see..
xgpt has quit [Quit: The Lounge - https://thelounge.chat]
xgpt has joined #armbian
<DC-IRC> [OFTC] <mjt> fuse will be slow though
<DC-IRC> [OFTC] <mjt> that actually works fine, it seems
<DC-IRC> [OFTC] <mjt> debootstrapped it in an unshare --user dir, and it works - much easier and faster than this new docker/podman stuff ;)
<DC-IRC> [OFTC] <mjt> guess regular bookworm system would do just fine too
flyback has joined #armbian
LanDi has joined #armbian
LanDi has quit [Read error: Connection reset by peer]
Mangix has quit [Read error: Connection reset by peer]
Mangix has joined #armbian
alekksander has quit [Quit: Konversation terminated!]
norton has quit [Ping timeout: 276 seconds]
jantones has quit [Quit: Leaving]
lyri has quit [Ping timeout: 240 seconds]
lyri has joined #armbian