43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
|
diff --git a/scripts/sid b/scripts/sid
|
||
|
index 1d96477..e899d42 100644
|
||
|
--- a/scripts/sid
|
||
|
+++ b/scripts/sid
|
||
|
@@ -58,7 +58,7 @@ first_stage_install () {
|
||
|
setup_etc
|
||
|
if [ ! -e "$TARGET/etc/fstab" ]; then
|
||
|
echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
|
||
|
- chown 0:0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
|
||
|
+ chmod 644 "$TARGET/etc/fstab"
|
||
|
fi
|
||
|
|
||
|
setup_devices
|
||
|
@@ -96,7 +96,6 @@ Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
|
||
|
if doing_variant fakechroot; then
|
||
|
setup_proc_fakechroot
|
||
|
else
|
||
|
- setup_proc
|
||
|
in_target /sbin/ldconfig
|
||
|
fi
|
||
|
|
||
|
@@ -166,6 +165,20 @@ echo
|
||
|
echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
|
||
|
chmod 755 "$TARGET/sbin/start-stop-daemon"
|
||
|
|
||
|
+ # Replace problematic binaries with a stub
|
||
|
+ echo "" > "$TARGET/bin/chown"
|
||
|
+ echo "" > "$TARGET/usr/sbin/groupadd"
|
||
|
+ echo "" > "$TARGET/usr/sbin/groupdel"
|
||
|
+ echo "" > "$TARGET/usr/sbin/groupmod"
|
||
|
+ echo "" > "$TARGET/usr/sbin/useradd"
|
||
|
+ echo "" > "$TARGET/usr/sbin/userdel"
|
||
|
+ echo "" > "$TARGET/usr/sbin/usermod"
|
||
|
+ echo "" > "$TARGET/usr/bin/chage"
|
||
|
+ echo "" > "$TARGET/usr/bin/chfn"
|
||
|
+ echo "" > "$TARGET/usr/bin/dpkg-statoverride"
|
||
|
+
|
||
|
+ echo "nameserver 8.8.8.8\nnameserver 8.8.4.4" > "$TARGET/etc/resolv.conf"
|
||
|
+
|
||
|
setup_dselect_method apt
|
||
|
|
||
|
smallyes '' |
|