File tree Expand file tree Collapse file tree 3 files changed +6
-24
lines changed Expand file tree Collapse file tree 3 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ Format=disk
29
29
SplitArtifacts=yes
30
30
31
31
[Content]
32
- RootPassword=foobar
33
32
Locale=en_US.UTF-8
34
33
Keymap=fi
35
34
Timezone=Europe/Helsinki
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- #! /bin/bash -ex
1
+ #! /bin/bash -e
2
2
3
3
kver=$( basename $BUILDROOT /usr/lib/modules/* )
4
4
if zcat -t $BUILDROOT /usr/lib/modules/$kver /vmlinuz ; then
5
5
mv $BUILDROOT /usr/lib/modules/$kver /{vmlinuz,vmlinuz.gz}
6
6
gzip -d $BUILDROOT /usr/lib/modules/$kver /vmlinuz.gz
7
7
fi
8
+
9
+ mkdir -pm 0700 /root/.ssh
10
+ # todo: use $(jq -r '.SshKey' $MKOSI_CONFIG) instead of hardcoded mkosi.key once the fix is released https://github.com/systemd/mkosi/pull/2574
11
+ ssh-keygen -f $SRCDIR /mkosi.key -y > /root/.ssh/authorized_keys
12
+ chmod 0700 /root/.ssh/authorized_keys
You can’t perform that action at this time.
0 commit comments