Debian Codegraph @

helpers/calamares-dpkg-unsafe-io

raw
1 #!/bin/sh
2
3 CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
4
5 if [ "$1" = "-u" ]; then
6 rm $CHROOT/etc/dpkg/dpkg.cfg.d/calamares-force-unsafe-io
7 sync
8 exit 0
9 fi
10
11 echo "force-unsafe-io" > $CHROOT/etc/dpkg/dpkg.cfg.d/calamares-force-unsafe-io
12
13 exit 0