You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
42 lines
1.3 KiB
7 years ago
|
diff -u -r ../debootstrap-1.0.97/scripts/debian-common ./scripts/debian-common
|
||
|
--- ../debootstrap-1.0.97/scripts/debian-common 2018-04-17 04:06:32.000000000 +0200
|
||
|
+++ ./scripts/debian-common 2018-04-30 03:21:24.616305825 +0200
|
||
|
@@ -52,7 +52,7 @@
|
||
8 years ago
|
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
|
||
7 years ago
|
|
||
8 years ago
|
setup_devices
|
||
7 years ago
|
@@ -92,7 +92,6 @@
|
||
8 years ago
|
if doing_variant fakechroot; then
|
||
|
setup_proc_fakechroot
|
||
|
else
|
||
|
- setup_proc
|
||
|
in_target /sbin/ldconfig
|
||
|
fi
|
||
7 years ago
|
|
||
|
@@ -162,6 +161,20 @@
|
||
8 years ago
|
echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
|
||
|
chmod 755 "$TARGET/sbin/start-stop-daemon"
|
||
7 years ago
|
|
||
8 years ago
|
+ # 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
|
||
7 years ago
|
|
||
8 years ago
|
smallyes '' |
|