!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

72 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5123 Servers

Load older messages


SenderMessageTime
12 Jun 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthen you should be good on the mount helper04:17:05
@colemickens:matrix.org@colemickens:matrix.orgsystemd's hint message said /sbin/ but I realize that might not matter04:17:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWe should have sbin linked to the same thing as bin04:17:48
@colemickens:matrix.org@colemickens:matrix.orguh, they have pretty different number of files from a quick ls in each04:19:01
@colemickens:matrix.org@colemickens:matrix.orgbut I'm getting status 32 back, so I think it found the helper.04:19:10
@colemickens:matrix.org@colemickens:matrix.orgI suspect that the mount.nfs is ... not busy box04:19:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWhoa what04:19:19
@colemickens:matrix.org@colemickens:matrix.organd thus I might just need to bump up the nfsver...04:19:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthey should be the same thing04:19:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd no we don't use busybox at all04:19:39
@colemickens:matrix.org@colemickens:matrix.org
sh-5.1# ls -al /sbin
lrwxrwxrwx 1 root 0 63 Jan  1  1970 /sbin -> /nix/store/ilbmzcqfx25x12bmhf82wg26wff4mjgn-initrd-bin-env/sbin
sh-5.1# ls -al /bin
lrwxrwxrwx 1 root 0 62 Jan  1  1970 /bin -> /nix/store/ilbmzcqfx25x12bmhf82wg26wff4mjgn-initrd-bin-env/bin
04:19:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWe use util-linux and coreutils04:19:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh. Yea I guess it makes sense that we have sbin linking to the env's sbin and bin linking to the env's bin...04:20:24
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThat's a problem though04:20:31
@colemickens:matrix.org@colemickens:matrix.org(lmk if you want me to a file a bug or note it somewhere)04:24:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.org colemickens: Yea this needs to be documented somewhere... I think it'd be best to open an issue explaining why it's a problem and I can add it to the systemd stage 1 project 04:26:29
@colemickens:matrix.org@colemickens:matrix.orgI'm not sure I understand why it's problematic though, unless I find out that it's really not finding the mount helper (which I don't necessarily suspect at the moment)04:27:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWell if it's only in /bin, util-linux may only search /sbin for mount helpers04:27:33
@colemickens:matrix.org@colemickens:matrix.orghm, ok, yeah maybe I am suspicious of this again then04:29:49
@colemickens:matrix.org@colemickens:matrix.orghmmmm04:29:51
@elvishjerricco:matrix.org@elvishjerricco:matrix.org colemickens: You could hack it so sbin == bin and see if that fixes it 04:30:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgA) Then you could proceed and we could see if you can get netboot working. B) We'd know if that's the problem04:30:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

colemickens: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/systemd/initrd.nix#L352-L353

You could just change the sbin line to point to bin

04:31:14
@colemickens:matrix.org@colemickens:matrix.orgdo we/you know a-priori that bin contains everything from sbin04:34:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org colemickens: Uh... Well that env that we get each dir from is just from a buildEnv, so I kinda though "Of course bin and sbin are basically the same in nixpkgs packages.... right?" 04:35:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSo no. If any package included in the env has something in one and not the other, then the same is true in the final env04:35:24
@colemickens:matrix.org@colemickens:matrix.orghuh04:35:54
@colemickens:matrix.org@colemickens:matrix.orghm hm hm04:36:04
@colemickens:matrix.org@colemickens:matrix.orgI feel like my question is, why does whatever pkg provides mount.nfs stick it in /bin?04:36:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgNo clue04:36:32

Show newer messages


Back to Room ListRoom Version: 6