Lennart Poettering on Nostr: Here's a fun little thing we commited to systemd the other day: the concept of .v/ ...
Here's a fun little thing we commited to systemd the other day: the concept of .v/ directories. What do we mean by that? Many of systemd's commands that take big resource files that are often versioned (e.g. a disk image file you could pass to sysemd-nspawn's --image= switch) now learnt a magic trick if you pass a path whose last component has the suffix ".v" and is a directory. If so, the tool will iterate through the dir's contents, do a version sort and automatically pick the newest version.
Published at
2024-01-04 10:17:23Event JSON
{
"id": "38351f625e26c110d45b95e9cb230d7375a9a50931a2b0cb4019d8826ace9684",
"pubkey": "1d95c32d9a9d95a54f98eb2eaa156f3d3a71dc49eca2c960b2b89962758f1cc0",
"created_at": 1704363443,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/pid_eins/statuses/111697162604850995",
"activitypub"
]
],
"content": "Here's a fun little thing we commited to systemd the other day: the concept of .v/ directories. What do we mean by that? Many of systemd's commands that take big resource files that are often versioned (e.g. a disk image file you could pass to sysemd-nspawn's --image= switch) now learnt a magic trick if you pass a path whose last component has the suffix \".v\" and is a directory. If so, the tool will iterate through the dir's contents, do a version sort and automatically pick the newest version.",
"sig": "b7eb3d98dc139ad0af3fda409e037a6942040eee5c7bfb8c46a72c4070b95f6c5e580a13e91bf9cfb842543b4949c4e260cf6ab5d7705c715200337c063784eb"
}