1 diff --git a/scripts/sid b/scripts/sid
2 index 1d96477..e899d42 100644
5 @@ -58,7 +58,7 @@ first_stage_install () {
7 if [ ! -e "$TARGET/etc/fstab" ]; then
8 echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
9 - chown 0:0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
10 + chmod 644 "$TARGET/etc/fstab"
14 @@ -96,7 +96,6 @@ Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
15 if doing_variant fakechroot; then
19 in_target /sbin/ldconfig
22 @@ -166,6 +165,20 @@ echo
23 echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
24 chmod 755 "$TARGET/sbin/start-stop-daemon"
26 + # Replace problematic binaries with a stub
27 + echo "" > "$TARGET/bin/chown"
28 + echo "" > "$TARGET/usr/sbin/groupadd"
29 + echo "" > "$TARGET/usr/sbin/groupdel"
30 + echo "" > "$TARGET/usr/sbin/groupmod"
31 + echo "" > "$TARGET/usr/sbin/useradd"
32 + echo "" > "$TARGET/usr/sbin/userdel"
33 + echo "" > "$TARGET/usr/sbin/usermod"
34 + echo "" > "$TARGET/usr/bin/chage"
35 + echo "" > "$TARGET/usr/bin/chfn"
36 + echo "" > "$TARGET/usr/bin/dpkg-statoverride"
38 + echo "nameserver 8.8.8.8\nnameserver 8.8.4.4" > "$TARGET/etc/resolv.conf"
40 setup_dselect_method apt