Skip to content

Commit

Permalink
migrates the vso container to the debian sid repos
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao committed Nov 26, 2024
1 parent e9a61e1 commit 3822778
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions includes.container/usr/lib/systemd/user/vso-migrate-repo.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=VSO Repo migration
After=vso-pre-run.service

[Service]
Type=oneshot
ExecStart=/usr/bin/bash /usr/libexec/vso/migrate-repo

[Install]
WantedBy=default.target
5 changes: 5 additions & 0 deletions includes.container/usr/libexec/vso/debian.sources
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Types: deb
URIs: http://deb.debian.org/debian
Suites: sid
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
11 changes: 11 additions & 0 deletions includes.container/usr/libexec/vso/migrate-repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

/usr/share/apx/distrobox/distrobox enter --name apx-vso-pico -- ls /etc/apt/sources.list.d/debian.sources
if [ "$?" -ne 2 ]; then
echo "already migrated"
exit 0
fi

set -e
/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
/usr/share/apx/distrobox/distrobox enter --name apx-vso-pico -- sudo rm /etc/apt/sources.list.d/vanilla-base.sources
1 change: 1 addition & 0 deletions modules/00-vanilla-system-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ modules:
- ln -s /usr/lib/systemd/system/vanilla-updates.timer /etc/systemd/system/timers.target.wants/vanilla-updates.timer
- mkdir -p /usr/lib/systemd/user/default.target.wants
- ln -s /usr/lib/systemd/user/vso-pre-run.service /usr/lib/systemd/user/default.target.wants/vso-pre-run.service
- ln -s /usr/lib/systemd/user/vso-migrate-repo.service /usr/lib/systemd/user/default.target.wants/vso-migrate-repo.service
- ln -s /usr/lib/systemd/user/vso-tasks-rotation.service /usr/lib/systemd/user/default.target.wants/vso-tasks-rotation.service

0 comments on commit 3822778

Please sign in to comment.