Skip to content

Commit 6032baa

Browse files
committed
Add all keys in /usr/share/pacman/keyrings to postcfg
1 parent 03b6da4 commit 6032baa

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

usr/bin/calamares-biglinux

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,17 @@ passwordRequirements:
244244
nonempty: true" > /etc/calamares/modules/users.conf
245245

246246

247+
# Clean postcfg
247248
echo '---
248-
keyrings:
249-
- archlinux
250-
- manjaro
251-
- biglinux' > /etc/calamares/modules/postcfg.conf
252-
249+
keyrings:' > /etc/calamares/modules/postcfg.conf
250+
251+
# Add all keys except puring and trustdb in postcfg
252+
cd /usr/share/pacman/keyrings
253+
for keyfile in $(ls -1 *.gpg | grep -v -e pubring.gpg -e trustdb.gpg); do
254+
echo " - ${keyfile%%.gpg}" >> /etc/calamares/modules/postcfg.conf
255+
done
256+
cd -
257+
253258

254259
#sed -i 's|initialSwapChoice: none|initialSwapChoice: small|g' /etc/calamares/modules/partition.conf
255260

0 commit comments

Comments
 (0)