Compare commits
3 Commits
8aa2f6ea44
...
1290869dfe
Author | SHA1 | Date | |
---|---|---|---|
1290869dfe | |||
35dacb977c | |||
0f6cc4aa13 |
10
setup.sh
10
setup.sh
@@ -370,6 +370,12 @@ function create_unpriv_user () {
|
|||||||
chown -R "${account_name}"':' '/home/'"${account_name}"; chmod -R 'u=rwX,go=' "$(dirname "${authorized_keys_abs_path}")"
|
chown -R "${account_name}"':' '/home/'"${account_name}"; chmod -R 'u=rwX,go=' "$(dirname "${authorized_keys_abs_path}")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function unleash_makepkg () {
|
||||||
|
sed -ri \
|
||||||
|
-e 's'$'\x1''^(#?(MAKEFLAGS=))[^\r\n\f]*'$'\x1''\2"-j$(nproc --ignore 1)"'$'\x1''g' \
|
||||||
|
'/mnt/etc/makepkg.conf'
|
||||||
|
}
|
||||||
|
|
||||||
function get_aur_helper () {
|
function get_aur_helper () {
|
||||||
create_unpriv_user 'build'
|
create_unpriv_user 'build'
|
||||||
usermod --append --groups 'wheel' 'build'
|
usermod --append --groups 'wheel' 'build'
|
||||||
@@ -416,8 +422,8 @@ Description=chmod initramfs to be root-read-writable only
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/chmod 600 /boot/initramfs-linux.img
|
ExecStart=/usr/bin/chmod 600 /boot/initramfs-linux.img
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable --now "${path_unit}"
|
systemctl enable "${path_unit}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_os_in_chroot () {
|
function install_os_in_chroot () {
|
||||||
|
Reference in New Issue
Block a user