1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98 |
+ cd builds.sr.ht/images/guix
+ ./genimg x86_64
+ arch=x86_64
+ ssh_opts='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
+ guix pull -v0
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to fafd3ca (4,069 new commits)...
▕ ▏
▕█▎ ▏
▕██▋ ▏
▕███▌ ▏
▕████▋ ▏
▕██████▏ ▏
▕███████▎ ▏
▕████████▍ ▏
▕█████████▉ ▏
▕███████████▏ ▏
▕████████████▍ ▏
▕█████████████▊ ▏
▕███████████████ ▏
▕████████████████▏ ▏
▕█████████████████ ▏
▕██████████████████▏ ▏
▕███████████████████▍ ▏
▕████████████████████▋ ▏
▕█████████████████████▊ ▏
▕██████████████████████▋ ▏
▕███████████████████████▊ ▏
▕████████████████████████▊ ▏
▕█████████████████████████▉ ▏
▕███████████████████████████ ▏
▕████████████████████████████▎ ▏
▕█████████████████████████████▍ ▏
▕██████████████████████████████▌ ▏
▕███████████████████████████████▋ ▏
▕████████████████████████████████▉ ▏
▕██████████████████████████████████ ▏
▕███████████████████████████████████▎ ▏
▕████████████████████████████████████▍ ▏
▕█████████████████████████████████████▎ ▏
▕██████████████████████████████████████▌ ▏
▕███████████████████████████████████████▌ ▏
▕████████████████████████████████████████▊ ▏
▕██████████████████████████████████████████ ▏
▕███████████████████████████████████████████▋ ▏
▕█████████████████████████████████████████████▏ ▏
▕██████████████████████████████████████████████▌ ▏
▕███████████████████████████████████████████████▍ ▏
▕████████████████████████████████████████████████▋ ▏
▕█████████████████████████████████████████████████▊ ▏
▕███████████████████████████████████████████████████ ▏
▕███████████████████████████████████████████████████▊ ▏
▕█████████████████████████████████████████████████████▎ ▏
▕██████████████████████████████████████████████████████▌ ▏
▕███████████████████████████████████████████████████████▋ ▏
▕████████████████████████████████████████████████████████▉ ▏
▕█████████████████████████████████████████████████████████▊ ▏
▕███████████████████████████████████████████████████████████ ▏
▕███████████████████████████████████████████████████████████▉ ▏
▕█████████████████████████████████████████████████████████████▏ ▏
▕██████████████████████████████████████████████████████████████▎ ▏
▕███████████████████████████████████████████████████████████████▎ ▏
▕████████████████████████████████████████████████████████████████▍ ▏
▕█████████████████████████████████████████████████████████████████▌ ▏
▕██████████████████████████████████████████████████████████████████▊ ▏
▕████████████████████████████████████████████████████████████████████ ▏
▕█████████████████████████████████████████████████████████████████████▏ ▏
▕██████████████████████████████████████████████████████████████████████▍ ▏
▕███████████████████████████████████████████████████████████████████████▋ ▏
▕█████████████████████████████████████████████████████████████████████████ ▏
▕██████████████████████████████████████████████████████████████████████████▌ ▏
▕████████████████████████████████████████████████████████████████████████████▏ ▏
▕█████████████████████████████████████████████████████████████████████████████▌▏
Building from this channel:
guix https://git.savannah.gnu.org/git/guix.git fafd3ca
Computing Guix derivation for 'x86_64-linux'...
++ guix system image --verbosity=0 --image-type=qcow2 --save-provenance system.scm
+ image=/gnu/store/rs559jvwr9wzrp6ycsv70ljv1xcyx0fh-image.qcow2
+ mkdir -p x86_64
+ cp /gnu/store/rs559jvwr9wzrp6ycsv70ljv1xcyx0fh-image.qcow2 x86_64/root.img.qcow2
+ chmod u+w x86_64/root.img.qcow2
+ qemu-img resize x86_64/root.img.qcow2 16G
Image resized.
+ sudo modprobe nbd max_part=16
+ sudo qemu-nbd --connect /dev/nbd0 x86_64/root.img.qcow2
+ trap cleanup EXIT
+ sudo sfdisk --quiet --no-reread --partno 2 /dev/nbd0
warning: /dev/nbd0: partition 2 is not defined yet
+ sudo resize2fs /dev/nbd0p2
resize2fs 1.46.4 (18-Aug-2021)
Couldn't find valid filesystem superblock.
resize2fs: Bad magic number in super-block while trying to open /dev/nbd0p2
+ cleanup
+ '[' -e /tmp/qemu.id ']'
+ sudo qemu-nbd --disconnect /dev/nbd0
/dev/nbd0 disconnected
|