Skip to content

Commit b4e8619

Browse files
committed
migrates vso container to debian sid repos
1 parent ea324e9 commit b4e8619

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=VSO Repo migration
3+
After=vso-pre-run.service
4+
5+
[Service]
6+
Type=oneshot
7+
ExecStart=/usr/bin/bash /usr/libexec/vso/migrate-repo
8+
9+
[Install]
10+
WantedBy=default.target

includes.container/usr/lib/systemd/user/vso-pre-run.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[Unit]
22
Description=VSO Shell Pre-Run
3+
After=podman.service podman-restart.service podman-auto-update.service
34

45
[Service]
56
Type=oneshot
7+
RemainAfterExit=yes
68
ExecStartPre=/usr/bin/wait-for-connection
79
ExecStart=/usr/bin/vso run -n -- echo vso container started
810

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Types: deb
2+
URIs: http://deb.debian.org/debian
3+
Suites: sid
4+
Components: main
5+
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
/usr/share/apx/distrobox/distrobox enter --name apx-vso-pico -- ls /etc/apt/sources.list.d/debian.sources
4+
if [ "$?" -ne 2 ]; then
5+
echo "already migrated"
6+
exit 0
7+
fi
8+
9+
set -e
10+
/usr/share/apx/distrobox/distrobox enter --name apx-vso-pico -- sudo cp /run/host/usr/libexec/vso/debian.sources /etc/apt/sources.list.d/debian.sources
11+
/usr/share/apx/distrobox/distrobox enter --name apx-vso-pico -- sudo rm /etc/apt/sources.list.d/vanilla-base.sources

modules/00-vanilla-system-operator.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,5 @@ modules:
8282
- ln -s /usr/lib/systemd/system/vanilla-updates.timer /etc/systemd/system/timers.target.wants/vanilla-updates.timer
8383
- mkdir -p /usr/lib/systemd/user/default.target.wants
8484
- ln -s /usr/lib/systemd/user/vso-pre-run.service /usr/lib/systemd/user/default.target.wants/vso-pre-run.service
85+
- ln -s /usr/lib/systemd/user/vso-migrate-repo.service /usr/lib/systemd/user/default.target.wants/vso-migrate-repo.service
8586
- ln -s /usr/lib/systemd/user/vso-tasks-rotation.service /usr/lib/systemd/user/default.target.wants/vso-tasks-rotation.service

0 commit comments

Comments
 (0)