refactor(meta): Move we_are_changerooted function to top ()

This commit is contained in:
hygienic-books 2023-10-20 15:15:39 +02:00
parent 63974a2dff
commit 29a5ede899

@ -13,10 +13,6 @@ trap '[ "$?" -ne 77 ] || exit 77' ERR
declare zpool_drive efi_drive
function set_ntp () {
timedatectl set-ntp true
}
function we_are_changerooted () {
if [ "$(stat -c '%d:%i' '/')" != "$(stat -c '%d:%i' '/proc/1/root/.')" ]; then
return 0
@ -25,6 +21,10 @@ function we_are_changerooted () {
fi
}
function set_ntp () {
timedatectl set-ntp true
}
function update_pacman_db () {
printf -- '%s\n' 'Refreshing mirror list ...'
systemctl start reflector