Browse Source

Symlink for ssl certificates

master
mid-kid 10 years ago
parent
commit
89cf0f4e0f
  1. 7
      tools/prepchroot

7
tools/prepchroot

@ -25,15 +25,12 @@ mknod -m 666 "$rocket/dev/null" c 1 3 2> /dev/null || true
echo "Creating directories" echo "Creating directories"
install -dm755 "$rocket/root" install -dm755 "$rocket/root"
mkdir -p "$rocket/etc" "$rocket/bin" "$rocket/usr/pkg" mkdir -p "$rocket/etc/ssl" "$rocket/bin" "$rocket/usr/pkg"
echo "Moving temporary things into place" echo "Moving temporary things into place"
ln -sf /tools/bin/sh "$rocket/bin/sh" ln -sf /tools/bin/sh "$rocket/bin/sh"
ln -sf /tools/lib/ssl/certs "$rocket/etc/ssl/certs"
echo "Creating users and groups" echo "Creating users and groups"
echo 'root:x:0:0:root:/root:/bin/sh' > "$rocket/etc/passwd" echo 'root:x:0:0:root:/root:/bin/sh' > "$rocket/etc/passwd"
echo 'root:x:0:' > "$rocket/etc/group" echo 'root:x:0:' > "$rocket/etc/group"
echo "Configuring astronaut"
echo '# This is a config for use with busybox
cmd_download="wget -O {dst} {src}"' > "$rocket/etc/astronaut.conf"

Loading…
Cancel
Save