File: dpkg-unsafe-io

package info (click to toggle)
calamares-settings-debian 12.0.9-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 484 kB
  • sloc: sh: 95; makefile: 2
file content (13 lines) | stat: -rwxr-xr-x 295 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")

if [ "$1" = "-u" ]; then
    rm $CHROOT/etc/dpkg/dpkg.cfg.d/calamares-force-unsafe-io
    sync
    exit 0
fi

echo "force-unsafe-io" > $CHROOT/etc/dpkg/dpkg.cfg.d/calamares-force-unsafe-io

exit 0