mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 01:46:19 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f804be7bbb | ||
![]() |
397f4cb04b | ||
![]() |
f98eaebd1b | ||
![]() |
7a369b3c35 |
@@ -196,11 +196,8 @@ chown -R nobody "$copydir/build"
|
||||
chown -R nobody "$copydir/srcdest"
|
||||
chown -R nobody "$copydir/pkgdest"
|
||||
|
||||
if ! grep "^nobody" "$copydir/etc/sudoers" >/dev/null 2>&1; then
|
||||
touch "$copydir/etc/sudoers"
|
||||
echo 'nobody ALL=(ALL) NOPASSWD: ALL' >> "$copydir/etc/sudoers"
|
||||
chmod 440 "$copydir/etc/sudoers"
|
||||
fi
|
||||
echo 'nobody ALL = NOPASSWD: /usr/bin/pacman' > "$copydir/etc/sudoers.d/nobody-pacman"
|
||||
chmod 440 "$copydir/etc/sudoers.d/nobody-pacman"
|
||||
|
||||
#This is a little gross, but this way the script is recreated every time in the
|
||||
#working copy
|
||||
@@ -256,6 +253,4 @@ if [ -e "${copydir}/build/BUILD_FAILED" ]; then
|
||||
echo "Build failed, check $copydir/build"
|
||||
rm "${copydir}/build/BUILD_FAILED"
|
||||
exit 1
|
||||
else
|
||||
rm -rf "${copydir}"/build/*
|
||||
fi
|
||||
|
@@ -98,6 +98,9 @@ chroot_mount() {
|
||||
mknod -m 600 "${working_dir}/dev/console" c 5 1
|
||||
mknod -m 644 "${working_dir}/dev/random" c 1 8
|
||||
mknod -m 644 "${working_dir}/dev/urandom" c 1 9
|
||||
mknod -m 666 "${working_dir}/dev/tty" c 5 0
|
||||
mknod -m 666 "${working_dir}/dev/tty0" c 4 0
|
||||
mknod -m 666 "${working_dir}/dev/full" c 1 7
|
||||
ln -s /proc/kcore "${working_dir}/dev/core"
|
||||
ln -s /proc/self/fd "${working_dir}/dev/fd"
|
||||
ln -s /proc/self/fd/0 "${working_dir}/dev/stdin"
|
||||
|
Reference in New Issue
Block a user