2018-05-19 00:17:00 +02:00
|
|
|
diff -u -r ../debootstrap-1.0.99/scripts/debian-common ./scripts/debian-common
|
|
|
|
--- ../debootstrap-1.0.99/scripts/debian-common 2018-05-17 01:57:52.000000000 +0000
|
|
|
|
+++ ./scripts/debian-common 2018-05-18 22:15:13.894769189 +0000
|
2018-04-30 03:26:35 +02:00
|
|
|
@@ -52,7 +52,7 @@
|
2017-06-06 10:20:41 +02:00
|
|
|
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
|
2018-04-30 03:26:35 +02:00
|
|
|
|
2017-06-06 10:20:41 +02:00
|
|
|
setup_devices
|
2018-05-19 00:17:00 +02:00
|
|
|
@@ -94,7 +94,6 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
if ! doing_variant fakechroot; then
|
2017-06-06 10:20:41 +02:00
|
|
|
- setup_proc
|
|
|
|
in_target /sbin/ldconfig
|
|
|
|
fi
|
2018-04-30 03:26:35 +02:00
|
|
|
|
2018-05-19 00:17:00 +02:00
|
|
|
@@ -164,6 +163,20 @@
|
2017-06-06 10:20:41 +02:00
|
|
|
echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
|
|
|
|
chmod 755 "$TARGET/sbin/start-stop-daemon"
|
2018-04-30 03:26:35 +02:00
|
|
|
|
2017-06-06 10:20:41 +02:00
|
|
|
+ # 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
|
2018-04-30 03:26:35 +02:00
|
|
|
|
2017-06-06 10:20:41 +02:00
|
|
|
smallyes '' |
|