d12d30e2bcf483faa945ce0a74e509094f10a796
[termux-packages] / packages / debootstrap / scripts.patch
1 diff --git a/scripts/sid b/scripts/sid
2 index 1d96477..e899d42 100644
3 --- a/scripts/sid
4 +++ b/scripts/sid
5 @@ -58,7 +58,7 @@ first_stage_install () {
6 setup_etc
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"
11 fi
12
13 setup_devices
14 @@ -96,7 +96,6 @@ Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
15 if doing_variant fakechroot; then
16 setup_proc_fakechroot
17 else
18 - setup_proc
19 in_target /sbin/ldconfig
20 fi
21
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"
25
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"
37 +
38 + echo "nameserver 8.8.8.8\nnameserver 8.8.4.4" > "$TARGET/etc/resolv.conf"
39 +
40 setup_dselect_method apt
41
42 smallyes '' |