| 12 Jun 2022 |
@elvishjerricco:matrix.org | then you should be good on the mount helper | 04:17:05 |
@colemickens:matrix.org | systemd's hint message said /sbin/ but I realize that might not matter | 04:17:19 |
@elvishjerricco:matrix.org | We should have sbin linked to the same thing as bin | 04:17:48 |
@colemickens:matrix.org | uh, they have pretty different number of files from a quick ls in each | 04:19:01 |
@colemickens:matrix.org | but I'm getting status 32 back, so I think it found the helper. | 04:19:10 |
@colemickens:matrix.org | I suspect that the mount.nfs is ... not busy box | 04:19:18 |
@elvishjerricco:matrix.org | Whoa what | 04:19:19 |
@colemickens:matrix.org | and thus I might just need to bump up the nfsver... | 04:19:28 |
@elvishjerricco:matrix.org | they should be the same thing | 04:19:28 |
@elvishjerricco:matrix.org | and no we don't use busybox at all | 04:19:39 |
@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 | We use util-linux and coreutils | 04:19:45 |
@elvishjerricco:matrix.org | oh. 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 | That's a problem though | 04:20:31 |
@colemickens:matrix.org | (lmk if you want me to a file a bug or note it somewhere) | 04:24:53 |
@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 | I'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 | Well if it's only in /bin, util-linux may only search /sbin for mount helpers | 04:27:33 |
@colemickens:matrix.org | hm, ok, yeah maybe I am suspicious of this again then | 04:29:49 |
@colemickens:matrix.org | hmmmm | 04:29:51 |
@elvishjerricco:matrix.org | colemickens: You could hack it so sbin == bin and see if that fixes it | 04:30:23 |
@elvishjerricco:matrix.org | A) Then you could proceed and we could see if you can get netboot working. B) We'd know if that's the problem | 04:30:41 |
@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 | do we/you know a-priori that bin contains everything from sbin | 04:34:08 |
@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 | So no. If any package included in the env has something in one and not the other, then the same is true in the final env | 04:35:24 |
@colemickens:matrix.org | huh | 04:35:54 |
@colemickens:matrix.org | hm hm hm | 04:36:04 |
@colemickens:matrix.org | I feel like my question is, why does whatever pkg provides mount.nfs stick it in /bin? | 04:36:23 |
@elvishjerricco:matrix.org | No clue | 04:36:32 |