summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/airootfs/etc/local.d/etc-pacman.d-gnupg.start
blob: f705ece8ed7f229d71916ab052ce8264a2f2097f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
#
# SPDX-License-Identifier: GPL-3.0-or-later

# Temporary /etc/pacman.d/gnupg directory
fstype="$(findmnt /etc/pacman.d/gnupg -o FSTYPE -Un)"

test -d /etc/pacman.d/gnupg || mkdir /etc/pacman.d/gnupg
if ! [[ "$fstype" == tmpfs ]]; then
  mount -o mode=0755 -t tmpfs tmpfs /etc/pacman.d/gnupg
fi