-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stable merge for week 4 of 2024 (#830)
### New Packages - `move-logs-to-opt` - 0.0.1-1 (#821) - Move log files to `/opt` to avoid filling up the root partition. - `oxide-extra` and `liboxide-dev` - 2.7-3 (#760) ### Updated Packages - `folly` - 0.0.1-4 (#823) - `koreader` - 2024.01-1 (#826) - `linux-stracciatella` - 5.4.70.4-1 (#808) - `oxide`, `oxide-utils`, `inject_evdev`, and `liboxide` - 2.7-3 (#760) - `puzzles` - 0.2.4-4 (#785) - `rm2-suspend-fix` - 0.0.0-3 (#821) - `genie` - 0.1.7-1 (#825) - `harmony` - 0.2.3-1 (#825) - `iago` - 0.1.2-1 (#825) - `remux` - 0.3.0-1 (#825) - `simple` - 0.2.1-1 (#825) - `tilem` - 0.1.1-1 (#764) - `toltec-base` - 1.3-1 (#806) - `yaft` - 0.1.1 (#763) - `zoneinfo-utils` - 2023c-1 (#702) - `rmfakecloud-proxy` - 0.0.3-5 (#757 #831) ### Packages removed - `erode`, `tarnish`, `decay`, and `corrupt` - Replaced by `oxide` - `fret`, and `anxiety` - Replaced by `oxide-extra` - `rot` - Replaced by `oxide-utils`
- Loading branch information
Showing
22 changed files
with
256 additions
and
176 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2023 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
pkgnames=(move-logs-to-opt) | ||
pkgdesc="Move log files to /opt to save space on the root partition" | ||
url=https://github.com/toltec-dev/toltec | ||
pkgver=0.0.1-1 | ||
timestamp=2024-01-07T23:55Z | ||
section="utils" | ||
maintainer="Eeems <eeems@eeems.email>" | ||
license=MIT | ||
|
||
source=(var-log.mount) | ||
sha256sums=(SKIP) | ||
|
||
package() { | ||
mkdir -p "$pkgdir"/opt/var/log | ||
install -D -m 644 -t "$pkgdir"/lib/systemd/system/ "$srcdir"/var-log.mount | ||
} | ||
|
||
configure() { | ||
systemctl daemon-reload | ||
if is-active systemd-journald.service; then | ||
journalctl --sync --flush | ||
systemctl stop systemd-journald.service | ||
fi | ||
if ! mountpoint -q /var/log; then | ||
echo "Moving log files to new location" | ||
local target_path=/home/root/.entware/var/log | ||
mkdir -p "$target_path" | ||
cp -af "/var/log/." "$target_path" | ||
rm -rf "/var/log/"* | ||
fi | ||
if ! is-enabled "var-log.mount"; then | ||
systemctl enable "var-log.mount" | ||
fi | ||
systemctl restart "var-log.mount" | ||
systemctl start systemd-journald.service | ||
} | ||
|
||
preremove() { | ||
if is-active systemd-journald.service; then | ||
journalctl --sync --flush | ||
systemctl stop systemd-journald.service | ||
fi | ||
disable-unit "var-log.mount" | ||
} | ||
|
||
postremove() { | ||
systemctl daemon-reload | ||
systemctl start systemd-journald.service | ||
if mountpoint -q /var/log; then | ||
umount -l /var/log | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Bind mount '/home/root/.entware/var/log' over '/var/log' | ||
DefaultDependencies=no | ||
Conflicts=umount.target | ||
Before=local-fs.target umount.target systemd-journald.service | ||
After=home.mount | ||
|
||
[Mount] | ||
What=/home/root/.entware/var/log | ||
Where=/var/log | ||
Type=none | ||
Options=bind | ||
|
||
[Install] | ||
WantedBy=local-fs.target |
Oops, something went wrong.