add snap fix for debian
This commit is contained in:
parent
deb051fd05
commit
6268b3ca84
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
#
|
||||||
|
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
||||||
|
|
||||||
|
# This script copies a file to the chroot and runs commands during the Debian installation process.
|
||||||
|
|
||||||
|
# Workaround for using snapd on debian. Thank You - @stevesveryown and peppermint team..
|
||||||
|
cd /target
|
||||||
|
[ ! -e /etc/skel/.local/share ] && mkdir -p /etc/skel/.local/share
|
||||||
|
[ ! -e /var/lib/snapd/desktop/applications ] &&
|
||||||
|
mkdir -p /var/lib/snapd/desktop/applications &&
|
||||||
|
chmod 777 /var/lib/snapd/desktop/applications
|
||||||
|
ln -s /var/lib/snapd/desktop/applications /etc/skel/.local/share/applications
|
||||||
|
ln -s snap /usr/bin/snap-store
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
#
|
||||||
|
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
||||||
|
|
||||||
|
# This script copies a file to the chroot and runs commands during the Debian installation process.
|
||||||
|
|
||||||
|
# Workaround for using snapd on debian. Thank You - @stevesveryown and peppermint team..
|
||||||
|
cd /target
|
||||||
|
[ ! -e /etc/skel/.local/share ] && mkdir -p /etc/skel/.local/share
|
||||||
|
[ ! -e /var/lib/snapd/desktop/applications ] &&
|
||||||
|
mkdir -p /var/lib/snapd/desktop/applications &&
|
||||||
|
chmod 777 /var/lib/snapd/desktop/applications
|
||||||
|
ln -s /var/lib/snapd/desktop/applications /etc/skel/.local/share/applications
|
||||||
|
ln -s snap /usr/bin/snap-store
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue