chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / debootstrap / scripts-debian-common.patch
1 diff -u -r ../debootstrap-1.0.97/scripts/debian-common ./scripts/debian-common
2 --- ../debootstrap-1.0.97/scripts/debian-common 2018-04-17 04:06:32.000000000 +0200
3 +++ ./scripts/debian-common     2018-04-30 03:21:24.616305825 +0200
4 @@ -52,7 +52,7 @@
5         setup_etc
6         if [ ! -e "$TARGET/etc/fstab" ]; then
7                 echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
8 -               chown 0:0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
9 +               chmod 644 "$TARGET/etc/fstab"
10         fi
11  
12         setup_devices
13 @@ -92,7 +92,6 @@
14         if doing_variant fakechroot; then
15                 setup_proc_fakechroot
16         else
17 -               setup_proc
18                 in_target /sbin/ldconfig
19         fi
20  
21 @@ -162,6 +161,20 @@
22  echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
23         chmod 755 "$TARGET/sbin/start-stop-daemon"
24  
25 +       # Replace problematic binaries with a stub
26 +       echo "" > "$TARGET/bin/chown"
27 +       echo "" > "$TARGET/usr/sbin/groupadd"
28 +       echo "" > "$TARGET/usr/sbin/groupdel"
29 +       echo "" > "$TARGET/usr/sbin/groupmod"
30 +       echo "" > "$TARGET/usr/sbin/useradd"
31 +       echo "" > "$TARGET/usr/sbin/userdel"
32 +       echo "" > "$TARGET/usr/sbin/usermod"
33 +       echo "" > "$TARGET/usr/bin/chage"
34 +       echo "" > "$TARGET/usr/bin/chfn"
35 +       echo "" > "$TARGET/usr/bin/dpkg-statoverride"
36 +
37 +       echo "nameserver 8.8.8.8\nnameserver 8.8.4.4" > "$TARGET/etc/resolv.conf"
38 +
39         setup_dselect_method apt
40  
41         smallyes '' |