Installing os-probe requires fakeroot

Building with --destructive-mode fails with error:

    dh install
       dh_testroot
    dh_testroot: error: You must run this as root (or use fakeroot).
    make: *** [debian/rules:6: install] Error 255

Use fakeroot for installation.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2022-03-14 14:19:37 +00:00 committed by Heinrich Schuchardt
parent 6114620956
commit 1a5b96c5be
1 changed files with 3 additions and 1 deletions

View File

@ -206,6 +206,8 @@ parts:
build-packages:
- build-essential
- debhelper
- fakeroot
override-build: |
./debian/rules build install
./debian/rules build
fakeroot ./debian/rules install
cp -a debian/os-prober/{usr,var} $SNAPCRAFT_PART_INSTALL