summaryrefslogtreecommitdiff
path: root/scripts/install.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-13 19:13:32 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-13 19:13:32 +0100
commit57df3be530421708f6f91d1750144bf258196f6e (patch)
tree9d07a41ef2ad26bab92e3701e6e5d0badd92c35d /scripts/install.sh
parentce821e3ab376483417a552c8e2e3289a76b34026 (diff)
setuid bit change for Xorg/sudo at install time
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-xscripts/install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 0c545d7c2..1937b556b 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -165,7 +165,7 @@ case $ostype {
part=${basedev}s1
match=\'${basedev}\''?(s+([0-9]))'
function mount_ext2fs {
- fuse-ext2 "$1" "$2" -o force
+ fuse-ext2 "$1" "$2" -o rw+
sleep 3
}
;;
@@ -336,7 +336,7 @@ tune2fs -c 0 -i 0 "$part"
(( quiet )) || print Extracting installation archive...
mount_ext2fs "$part" "$T"
-gzip -dc "$src" | (cd "$T"; tar -xpf -)
+gzip -dc "$src" | (cd "$T"; tar -xvpf -)
cd "$T"
rnddev=/dev/urandom
[[ -c /dev/arandom ]] && rnddev=/dev/arandom
@@ -345,6 +345,8 @@ dd if=$rnddev bs=16 count=1 >>etc/.rnd 2>/dev/null
chown 0:0 tmp
chmod 1777 tmp
chmod 4755 bin/busybox
+[[ -f usr/bin/Xorg ]] && chmod 4755 usr/bin/Xorg
+[[ -f usr/bin/sudo ]] && chmod 4755 usr/bin/sudo
(( quiet )) || print Configuring GRUB2 bootloader...
mkdir -p boot/grub
(