This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo sed -i /etc/calamares/modules/mount.conf -E \ | |
-e 's/, autodefrag//' \ | |
-e 's/compress=lzo/compress=zstd/' \ | |
-e '/^mountOptions:$/ { r /dev/stdin' -e'd;}' <<EOF | |
btrfsSwapSubvol: /@swap | |
btrfsSubvolumes: | |
- mountPoint: / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gitlab.com/apparmor/apparmor/-/wikis/unprivileged_userns_restriction | |
# | |
# Mentioned also in https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces | |
#kernel.apparmor_restrict_unprivileged_unconfined=0 | |
# This sysctl allows enabling or disabling all apparmor mediation/restrictions | |
# around unprivileged user namespaces. If set to off the other sysctls are | |
# ignored, rules in policy are ignored etc. | |
# Uncommenting this makes things "work": | |
#kernel.apparmor_restrict_unprivileged_userns=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
script_name=$(readlink -e $0) | |
script_dir=$(dirname $script_name) | |
if [[ -d "${PWD}/pre.d" || -d "${PWD}/post.d" ]]; then | |
hook_dir="${PWD}" | |
elif [[ -d "${script_dir}/pre.d" || -d "${script_dir}/post.d" ]]; then | |
hook_dir="${script_dir}" | |
elif [[ -d "/etc/letsencrypt/pre.d" || -d "/etc/letsencrypt/post.d" ]]; then |