| 28 Dec 2024 |
@elvishjerricco:matrix.org | nikstur: Any chance you could help me with understanding some of the internals of the composefs stuff that the etc overlay uses? | 21:25:36 |
@elvishjerricco:matrix.org | I was expecting to be able to getfattr -d - m '-' the files in the the erofs metadata image to see some overlayfs-related xattrs | 21:26:06 |
@elvishjerricco:matrix.org | but I don't see any | 21:26:09 |
@elvishjerricco:matrix.org | * I was expecting to be able to getfattr -d -m '-' the files in the the erofs metadata image to see some overlayfs-related xattrs | 21:26:35 |
@elvishjerricco:matrix.org | Namely, I was expecting to see some trusted.overlay.metacopy and/or trusted.overlay.redirect xattrs | 21:27:50 |
@elvishjerricco:matrix.org | huh, yea I can definitely see some of that in the strings output on the erofs | 21:54:12 |
@elvishjerricco:matrix.org | so why can't I mount the erofs and getfattr to see them? | 21:54:34 |
| 29 Dec 2024 |
| elikoga changed their display name from elikoga (@38c3 📞488{0,1}) to elikoga (@38c3 📞488{0,1,9}). | 11:02:55 |
| dustee joined the room. | 16:00:16 |
dustee | hi im getting an eror while configuring a fileSystems.fsType = "sshfs". when i rebuild a second time i get a systemd error that doesnt go away until i reboot, commenting out the sshfs nix config doesnt help
restarting sysinit-reactivation.target
Error: Failed to open unit file /nix/store/0brwavnsjwyi9pgx7zl82cr0gqndl2a1-nixos-system-nixos-blazp-cloud-serv-01-25.05.20241219.d70bd19/etc/systemd/system/mnt-remote-10.100.200.50-sshfs-4tb\x2dsata-torrents.mount
Caused by:
No such file or directory (os error 2)
{
config,
domain,
...
}: let
remote = "torrents@10.100.200.50:/";
local = "/mnt/remote/10.100.200.50/sshfs/4tb-sata/torrents";
in {
systemd.tmpfiles.rules = ["d '${local}' 0755 root root - -"];
fileSystems = {
"${local}" = {
device = "${remote}";
fsType = "sshfs";
options = [
# SSH options
"Port=2022" # specific port to connect to
"IdentityFile=/etc/ssh/ssh_host_ed25519_key" # private key auth
"ServerAliveInterval=15" # keep connections alive
"StrictHostKeyChecking=no" # accept host keys non-interactively, without setting up ssh host config
"UserKnownHostsFile=/dev/null" # prevent storing host keys in the known_hosts file
"reconnect" # handle connection drops
# Filesystem options
"allow_other" # for non-root access
"_netdev" # this is a network fs
"x-systemd.automount" # mount on demand
# Filesystem options - additional/optional
"noatime" # dont update access times for files, improves performance
"nodev" # prevent users from accessing raw block device files through the mounted filesystem
];
};
};
}
| 16:01:10 |
dustee | * hi im getting an error while configuring a fileSystems.fsType = "sshfs". when i rebuild a second time i get a systemd error that doesnt go away until i reboot, commenting out the sshfs nix config doesnt help
restarting sysinit-reactivation.target
Error: Failed to open unit file /nix/store/0brwavnsjwyi9pgx7zl82cr0gqndl2a1-nixos-system-nixos-blazp-cloud-serv-01-25.05.20241219.d70bd19/etc/systemd/system/mnt-remote-10.100.200.50-sshfs-4tb\x2dsata-torrents.mount
Caused by:
No such file or directory (os error 2)
{
config,
domain,
...
}: let
remote = "torrents@10.100.200.50:/";
local = "/mnt/remote/10.100.200.50/sshfs/4tb-sata/torrents";
in {
systemd.tmpfiles.rules = ["d '${local}' 0755 root root - -"];
fileSystems = {
"${local}" = {
device = "${remote}";
fsType = "sshfs";
options = [
# SSH options
"Port=2022" # specific port to connect to
"IdentityFile=/etc/ssh/ssh_host_ed25519_key" # private key auth
"ServerAliveInterval=15" # keep connections alive
"StrictHostKeyChecking=no" # accept host keys non-interactively, without setting up ssh host config
"UserKnownHostsFile=/dev/null" # prevent storing host keys in the known_hosts file
"reconnect" # handle connection drops
# Filesystem options
"allow_other" # for non-root access
"_netdev" # this is a network fs
"x-systemd.automount" # mount on demand
# Filesystem options - additional/optional
"noatime" # dont update access times for files, improves performance
"nodev" # prevent users from accessing raw block device files through the mounted filesystem
];
};
};
}
| 16:01:29 |
dustee | * hi im getting an error while configuring a fileSystems.fsType = "sshfs". when i rebuild a second time i get a systemd error that doesnt go away until i reboot, commenting out the sshfs nix config doesnt help
restarting sysinit-reactivation.target
Error: Failed to open unit file /nix/store/0brwavnsjwyi9pgx7zl82cr0gqndl2a1-nixos-system-nixos-blazp-cloud-serv-01-25.05.20241219.d70bd19/etc/systemd/system/mnt-remote-10.100.200.50-sshfs-4tb\x2dsata-torrents.mount
Caused by:
No such file or directory (os error 2)
{
config,
domain,
...
}: let
remote = "torrents@10.100.200.50:/";
local = "/mnt/remote/10.100.200.50/sshfs/4tb-sata/torrents";
in {
systemd.tmpfiles.rules = ["d '${local}' 0755 root root - -"];
fileSystems = {
"${local}" = {
device = "${remote}";
fsType = "sshfs";
options = [
# this is what im trying to do but the error appeared even with the most basic options
# SSH options
"Port=2022" # specific port to connect to
"IdentityFile=/etc/ssh/ssh_host_ed25519_key" # private key auth
"ServerAliveInterval=15" # keep connections alive
"StrictHostKeyChecking=no" # accept host keys non-interactively, without setting up ssh host config
"UserKnownHostsFile=/dev/null" # prevent storing host keys in the known_hosts file
"reconnect" # handle connection drops
# Filesystem options
"allow_other" # for non-root access
"_netdev" # this is a network fs
"x-systemd.automount" # mount on demand
# Filesystem options - additional/optional
"noatime" # dont update access times for files, improves performance
"nodev" # prevent users from accessing raw block device files through the mounted filesystem
];
};
};
}
| 16:02:12 |
dustee | * hi im getting an error while configuring a fileSystems.fsType = "sshfs". when i rebuild a second time i get a systemd error that doesnt go away until i reboot, commenting out the sshfs nix config doesnt help
restarting sysinit-reactivation.target
Error: Failed to open unit file /nix/store/0brwavnsjwyi9pgx7zl82cr0gqndl2a1-nixos-system-nixos-blazp-cloud-serv-01-25.05.20241219.d70bd19/etc/systemd/system/mnt-remote-10.100.200.50-sshfs-4tb\x2dsata-torrents.mount
Caused by:
No such file or directory (os error 2)
{
config,
domain,
...
}: let
remote = "torrents@10.100.200.50:/"; # stfpgo user
local = "/mnt/remote/10.100.200.50/sshfs/4tb-sata/torrents";
in {
systemd.tmpfiles.rules = ["d '${local}' 0755 root root - -"];
fileSystems = {
"${local}" = {
device = "${remote}";
fsType = "sshfs";
options = [
# this is what im trying to do but the error appeared even with the most basic options
# SSH options
"Port=2022" # specific port to connect to
"IdentityFile=/etc/ssh/ssh_host_ed25519_key" # private key auth
"ServerAliveInterval=15" # keep connections alive
"StrictHostKeyChecking=no" # accept host keys non-interactively, without setting up ssh host config
"UserKnownHostsFile=/dev/null" # prevent storing host keys in the known_hosts file
"reconnect" # handle connection drops
# Filesystem options
"allow_other" # for non-root access
"_netdev" # this is a network fs
"x-systemd.automount" # mount on demand
# Filesystem options - additional/optional
"noatime" # dont update access times for files, improves performance
"nodev" # prevent users from accessing raw block device files through the mounted filesystem
];
};
};
}
| 16:03:10 |
dustee | * hi im getting an error while configuring a fileSystems.fsType = "sshfs". when i rebuild the nix host a second time i get a systemd error that doesnt go away until i reboot, commenting out the sshfs nix config doesnt help
restarting sysinit-reactivation.target
Error: Failed to open unit file /nix/store/0brwavnsjwyi9pgx7zl82cr0gqndl2a1-nixos-system-nixos-blazp-cloud-serv-01-25.05.20241219.d70bd19/etc/systemd/system/mnt-remote-10.100.200.50-sshfs-4tb\x2dsata-torrents.mount
Caused by:
No such file or directory (os error 2)
{
config,
domain,
...
}: let
remote = "torrents@10.100.200.50:/"; # sftpgo user
local = "/mnt/remote/10.100.200.50/sshfs/4tb-sata/torrents";
in {
systemd.tmpfiles.rules = ["d '${local}' 0755 root root - -"];
fileSystems = {
"${local}" = {
device = "${remote}";
fsType = "sshfs";
options = [
# this is what im trying to do but the error appeared even with the most basic options
# SSH options
"Port=2022" # specific port to connect to
"IdentityFile=/etc/ssh/ssh_host_ed25519_key" # private key auth
"ServerAliveInterval=15" # keep connections alive
"StrictHostKeyChecking=no" # accept host keys non-interactively, without setting up ssh host config
"UserKnownHostsFile=/dev/null" # prevent storing host keys in the known_hosts file
"reconnect" # handle connection drops
# Filesystem options
"allow_other" # for non-root access
"_netdev" # this is a network fs
"x-systemd.automount" # mount on demand
# Filesystem options - additional/optional
"noatime" # dont update access times for files, improves performance
"nodev" # prevent users from accessing raw block device files through the mounted filesystem
];
};
};
}
| 16:10:27 |
@elvishjerricco:matrix.org | that's interesting | 16:33:37 |
@elvishjerricco:matrix.org | dustee: That definitely looks like a stc bug of some kind | 16:33:56 |
@elvishjerricco:matrix.org | * dustee: That definitely looks like a switch-to-configuration bug of some kind | 16:34:10 |
@elvishjerricco:matrix.org | /cc Jared Baur | 16:34:29 |
@elvishjerricco:matrix.org | I wonder if the x-systemd.automount is messing with it somehow or something? | 16:34:51 |
gdamjan | I'm gonna contribute a systemd service unit file for an upstream project,
what would make it easier to use with NixOS?
I'm gonna use DynamicUser=true, StateDirectory= and CacheDirectory=
but there's one mandatory commandline argument to be specified and some optional environment variables that can configure the project | 19:52:30 |
gdamjan | [Service]
DynamicUser=true
StateDirectory=rqbit
CacheDirectory=rqbit
Environment=XDG_CACHE_HOME=/var/cache/rqbit
Environment=XDG_DATA_HOME=/var/lib/rqbit
# default DOWNLOAD_DIR, can be overriden in /etc/default/rqbit
Environment=DOWNLOAD_DIR=/var/tmp
EnvironmentFile=-/etc/default/rqbit
ExecStart=/usr/bin/rqbit server start $DOWNLOAD_DIR
| 19:53:04 |
dustee | * hi im getting an error while configuring a fileSystems.fsType = "sshfs". when i rebuild the nix host a second time i get a systemd error that doesnt go away until i reboot, commenting out the sshfs nix config doesnt help EDIT: i think the error only happened when the sshfs connection failed
restarting sysinit-reactivation.target
Error: Failed to open unit file /nix/store/0brwavnsjwyi9pgx7zl82cr0gqndl2a1-nixos-system-nixos-blazp-cloud-serv-01-25.05.20241219.d70bd19/etc/systemd/system/mnt-remote-10.100.200.50-sshfs-4tb\x2dsata-torrents.mount
Caused by:
No such file or directory (os error 2)
{
config,
domain,
...
}: let
remote = "torrents@10.100.200.50:/"; # sftpgo user
local = "/mnt/remote/10.100.200.50/sshfs/4tb-sata/torrents";
in {
systemd.tmpfiles.rules = ["d '${local}' 0755 root root - -"];
fileSystems = {
"${local}" = {
device = "${remote}";
fsType = "sshfs";
options = [
# this is what im trying to do but the error appeared even with the most basic options
# SSH options
"Port=2022" # specific port to connect to
"IdentityFile=/etc/ssh/ssh_host_ed25519_key" # private key auth
"ServerAliveInterval=15" # keep connections alive
"StrictHostKeyChecking=no" # accept host keys non-interactively, without setting up ssh host config
"UserKnownHostsFile=/dev/null" # prevent storing host keys in the known_hosts file
"reconnect" # handle connection drops
# Filesystem options
"allow_other" # for non-root access
"_netdev" # this is a network fs
"x-systemd.automount" # mount on demand
# Filesystem options - additional/optional
"noatime" # dont update access times for files, improves performance
"nodev" # prevent users from accessing raw block device files through the mounted filesystem
];
};
};
}
| 20:47:50 |
dustee | * hi im getting an error while configuring a fileSystems.fsType = "sshfs". when i rebuild the nix host a second time i get a systemd error that doesnt go away until i reboot, commenting out the sshfs nix config doesnt help EDIT: i think the error only happened when the sshfs connection failed, and i tried to rebuild with a changed sshfs nix config
restarting sysinit-reactivation.target
Error: Failed to open unit file /nix/store/0brwavnsjwyi9pgx7zl82cr0gqndl2a1-nixos-system-nixos-blazp-cloud-serv-01-25.05.20241219.d70bd19/etc/systemd/system/mnt-remote-10.100.200.50-sshfs-4tb\x2dsata-torrents.mount
Caused by:
No such file or directory (os error 2)
{
config,
domain,
...
}: let
remote = "torrents@10.100.200.50:/"; # sftpgo user
local = "/mnt/remote/10.100.200.50/sshfs/4tb-sata/torrents";
in {
systemd.tmpfiles.rules = ["d '${local}' 0755 root root - -"];
fileSystems = {
"${local}" = {
device = "${remote}";
fsType = "sshfs";
options = [
# this is what im trying to do but the error appeared even with the most basic options
# SSH options
"Port=2022" # specific port to connect to
"IdentityFile=/etc/ssh/ssh_host_ed25519_key" # private key auth
"ServerAliveInterval=15" # keep connections alive
"StrictHostKeyChecking=no" # accept host keys non-interactively, without setting up ssh host config
"UserKnownHostsFile=/dev/null" # prevent storing host keys in the known_hosts file
"reconnect" # handle connection drops
# Filesystem options
"allow_other" # for non-root access
"_netdev" # this is a network fs
"x-systemd.automount" # mount on demand
# Filesystem options - additional/optional
"noatime" # dont update access times for files, improves performance
"nodev" # prevent users from accessing raw block device files through the mounted filesystem
];
};
};
}
| 20:48:47 |
@elvishjerricco:matrix.org | gdamjan: do Environment and EnvironmentFile work like that? i.e. They can apply to the command line of an ExecStart? | 21:14:32 |
@elvishjerricco:matrix.org | if so, that's pretty useful | 21:14:38 |
gdamjan | yes, that works | 22:16:40 |
| 30 Dec 2024 |
| raitobezarius changed their display name from raitobezarius (DECT: 3538 / EPVPN 2681) to raitobezarius. | 16:29:51 |
| Tommy changed their display name from Tommy (3841) to Tommy. | 19:25:53 |
| 31 Dec 2024 |
| tilpner changed their display name from tilpner (38c3 3209) to tilpner. | 10:54:52 |
Arian | Why do we only install upstream wants for sysinit.target ?? | 17:35:20 |