!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
22 May 2023
@arianvp:matrix.orgArianconfusing17:23:53
@elvishjerricco:matrix.orgElvishJerricco Arian: Is --image the right thing? 17:23:55
@elvishjerricco:matrix.orgElvishJerriccoyea17:23:57
@elvishjerricco:matrix.orgElvishJerriccoa bit odd for sure17:24:02
@arianvp:matrix.orgArian
[arian@utm:~]$ systemd-repart --empty=create --size=1G --definitions=./defs ./image.img
/home/arian/defs/esp.conf:3: CopyFiles= path is not absolute, ignoring: ./files
Sized './image.img' to 1.0G.
TYPE LABEL UUID                                 FILE     NODE                SIZE PADDING
esp  esp   b43a24f9-410d-4604-8d83-3aecf33a7313 esp.conf ./image.img1   → 1022.9M    → 0B
                                                                      Σ = 1022.9M  Σ = 0B
17:24:20
@elvishjerricco:matrix.orgElvishJerricco yea I think CopyFiles is supposed to be an absolute path within the --root or --image 17:25:14
@arianvp:matrix.orgArian

nice!

[arian@utm:~]$ systemd-repart --empty=create --size=1G --definitions=./defs ./image.img
Sized './image.img' to 1.0G.
TYPE LABEL UUID                                 FILE     NODE                SIZE PADDING
esp  esp   b43a24f9-410d-4604-8d83-3aecf33a7313 esp.conf ./image.img1   → 1022.9M    → 0B
                                                                      Σ = 1022.9M  Σ = 0B

 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
 └─ esp.conf                                                                                                                  

Applying changes.
Wiped block device.
Discarded entire block device.
Successfully wiped file system signatures from future partition 0.
Formatting future partition 0.
mkfs.fat 4.2 (2021-01-31)
Could not find mcopy binary.

now complaining about mcopy

17:26:22
@arianvp:matrix.orgArianworks!! woohoo17:26:52
@arianvp:matrix.orgArian Ill make a PR to add the repart definitions file to config.system.build.repartDefitions so that it can be consumed by image builder 17:54:24
@arianvp:matrix.orgArian hmm systemd-repart CopyFiles not working in a derivation 18:12:04
@arianvp:matrix.orgArian crashes with Failed to create temporary directory: No such file or directory 18:12:11
@arianvp:matrix.orgAriantime to dive in18:12:14
@elvishjerricco:matrix.orgElvishJerricco Arian: Same thing as this? https://github.com/NixOS/nixpkgs/pull/232533/files#diff-e3878de7d7be6c8d04741535f3ffbed368e3ad379eb804daa12ca0056816b1e5R107-R111 18:13:42
@arianvp:matrix.orgArianyes@@18:14:07
@arianvp:matrix.orgArianthanks!18:14:09
@arianvp:matrix.orgArian hmm setting TMPDIR=/tmp doesn't seem to help for some reason 18:15:22
@arianvp:matrix.orgArian oh wait /tmp doesnt exist in the build sandbox of course 18:16:08
@arianvp:matrix.orgArianstill same error. darnit18:17:42
@arianvp:matrix.orgArian
          mkdir -p /build/tmp
          TMPDIR=/build/tmp systemd-repart \
            --empty=create \
            --size=2G \
            --definitions ${config.system.build.partitionDefinitions} \
            $out
18:21:14
@arianvp:matrix.orgArian it's weird because stdenv alreayd sets TMPDIR=/build by default 18:23:08
@arianvp:matrix.orgArianidk why it's not being picked up18:23:13
@arianvp:matrix.orgArian urgh and cant reproduce in nix develop. Then it does work. strange 18:30:17
@arianvp:matrix.orgArian Seems for some reason systemd'sis_dir_full() returns false for the /build folder in the build sandbox. 18:34:38
@nikstur:matrix.org@nikstur:matrix.orgI needed this commit to make systemd-repart behave nicely in the build sandbox18:38:09
@nikstur:matrix.org@nikstur:matrix.orgWhich is after v25318:38:22
@nikstur:matrix.org@nikstur:matrix.orghttps://github.com/systemd/systemd/commit/1eb86ddde4f36165a99732b53cc97cef1acc3aa718:39:11
@nikstur:matrix.org@nikstur:matrix.orgwait... this wasnt after 25318:39:57
@arianvp:matrix.orgArianit is though no?18:41:36
@arianvp:matrix.orgAriandont see the commit associated with any tags18:41:42
@arianvp:matrix.orgArianNo. this is in v253. you're right. Weird18:43:09

Show newer messages


Back to Room ListRoom Version: 6