-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapcraft: environment and package fixes
* adjust environment to set PYTHONPATH to pick up site-packages * add more required packages * add script for subiquity-server, and set PYTHONPATH there, so that the PYTHONPATH takes effect
- Loading branch information
Showing
4 changed files
with
76 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
export PYTHONPATH=$PYTHONPATH:$SNAP/lib/python3.8/site-packages | ||
$PYTHON -m subiquity.cmd.server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#!/bin/sh | ||
port=tty1 | ||
export PYTHONPATH=$SNAP/lib/python3.8/site-packages | ||
|
||
if [ -n "$1" ]; then | ||
port=$1 | ||
fi | ||
/bin/dmesg -n 1 | ||
if [ "$port" = "tty1" ]; then | ||
$SNAP/bin/subiquity-loadkeys | ||
setfont $SNAP/subiquity.psf | ||
exec /sbin/agetty -n --noclear -l $SNAP/usr/bin/python3 -o $SNAP/usr/bin/subiquity $port $TERM | ||
exec /sbin/agetty -n --noclear -l $PYTHON -o $SNAP/usr/bin/subiquity $port $TERM | ||
else | ||
exec /sbin/agetty -n --keep-baud -l $SNAP/usr/bin/python3 -o "$SNAP/usr/bin/subiquity --serial" $port 115200,38400,9600 $TERM | ||
exec /sbin/agetty -n --keep-baud -l $PYTHON -o "$SNAP/usr/bin/subiquity --serial" $port 115200,38400,9600 $TERM | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters