Skip to content

u/wlhlm

In this archive from Dec 2015 to Sep 2022

11
posts
87
comments
3
media
1k
score

My hope is that we maybe have a smaller linux package for VMs in the future (similar to what Alpine has).

That'll have to be very opinionated on which VM setups it accepts, once you add in fun stuff like PCIe pass-through you can end up needing the full image again. I can see why the Arch devs don't want to bother.

Yes, the idea is to be opinionated. Finding a good reduced set of modules to support hybrid setups such as when using pass-through seems hard to me as well. I would target a "cloud" environment with minimal surface focused on virtIO devices. If you need more, I don't think you'd be too concerned about the using the larger standard kernel package.

The way I'm envisioning it is to add a split package to linux-lts that uses a different Kconfig. Basically the way Alpine does it. I don't think that's too crazy as we do already have additional kernel flavours, so it doesn't seem like my idea would be shot down on principle.

There was already a slimming of the base installation when transitioning to the base metapackage in order to reduce the Arch Linux Docker container size, so it's definitely something people are looking into.

Doubt it. It's much easier to just change a few dependencies to not include one particular package than it is to come up with sensible alternative flavours for the kernel packages and keep them all updated.

I didn't mean that it will happen tomorrow. I just wanted to note that the project is not purely dedicated to building a desktop operating system, but is interested in use cases for "virtual" environments as well. I can see that creating an additional kernel package is a bit more work than changing a dependency line, but I don't think it's out of scope.

1 points

I didn't really find a satisfying solution to be honest. The kernel package itself takes up quite a bit since it includes a huge number of modules for hardware support not necessary for a virtual environment, but I'm not in a position to maintain a custom kernel.

My hope is that we maybe have a smaller linux package for VMs in the future (similar to what Alpine has). There was already a slimming of the base installation when transitioning to the base metapackage in order to reduce the Arch Linux Docker container size, so it's definitely something people are looking into.

6 points

The heads up is very much appreciated!

I'm using ~/.pam_environment to set environment variables that I need in both my shell and systemd user services (using systemd to bring up my graphical session). This includes XDG_* and SSH_AUTH_*. I would be interested to know if anyone has a solution that sets env vars in the shell and systemd user instance that is considered more secure and doesn't require setting the same var in multiple places.

5 points

I'm running OpenSMTPd on Arch (have been for 6 years now) and I'd probably use something else if I ever redo my setup (probably switch to postfix).

My reasons for initially choosing OpenSMTPd include that its config format seemed a lot simpler, the overall code base seemed smaller (less lines of code == less bugs, also the Arch package had minimal dependencies such as no external database connectivity which I didn't need), and of course it's part of the OpenBSD project which has a pedigree for developing software that is more secure than average. Running the thing in practice though you get the feeling that the software is still in flux and that some corners might receive breaking changes in the future. I think a mail system especially on the MTA level should be stable and that's better served by something else like postfix.

To give a couple of examples, there was a breaking change in config format where some parts of the configuration language was updated but some statements kept their meaning resulting in configs being subtly broken in non-obvious ways. Even with my simple setup I wasn't able to fix my config by just looking documentation of the changes and had to deal with forwarding loops live after the update. There was a time when the Arch package lagged behind upstream for quite a bit due to incompatibilities with the SSL libraries shipped in Arch. This has been fixed now, but similar things might occur in the future due the OpenSMTPd being developed primarily for the OpenBSD operating system, meaning fixing breakages in the portable version is not as high on the priority list (at least that's the impression I got).

Furthermore, in the last year they have found two major security vulnerabilities (remote code execution as root, which is a bad as vulnerabilities can get) which doesn't paint a good picture of the code base and how much testing it gets.

So I think that OpenSMTPd can a candidate for a good MTA in the future, but I'd wait a bit longer until more of the kinks have been shaken out.

2 points

In my experience, the arch mirrors have always been plenty fast, so not sure if the added complexity is worth it (looks like the change adds about 500 lines of code). It'll probably help downstream consumers of pacman with smaller/slower mirror infrastructure (I'm looking at you, Arch Linux ARM), but I'm not sure if you care about that.

23 points

I'm guessing that's because archlinux.org uses HSTS, meaning that the webserver tells you're browser that it only should connect to archlinux.org using HTTPS, so any request the browser makes to the domain going forward will only be encrypted even if the URL was for plain HTTP.

6 points

Not that I've tried it, but agetty(8) supports specifying the issue file on the commandline:

-f, --issue-file file|directory

Display the contents of file instead of /etc/issue. If the specified path is a directory then displays all files with .issue file extension in version-sort order from the directory. This allows custom messages to be displayed on different terminals. The --noissue option will override this option.

You could then create dropins for getty@ttyX.service (using systemctl edit for example) and replace the ExecStart= line with the options for a specific issue file.

2 points

From a quick look, ncurses, which is the package that includes the terminfo database, follows a somewhat antiquated development model where there doesn't seem to be any publicly accessible version control system, but just tarballs of stable releases and a list of patch files that contain changes made inbetween major releases. This reminds me a bit of how vim (used to?) is developed.

Now back to terminfo, the last stable release of ncurses is 6.1 from January 2018 and Arch ships this of course, but the change @ThomasDickey (who is the ncurses maintainer) refers to has been made after the release of 6.1 and no new "stable" version has been released after that. So I don't think Arch is out of date here necessarily. It could be, the maintainer sees terminfo as a separate thing that should be updated more frequently, but I couldn't find any indication of this on the ncurses website other than terminfo having its own section with download links.

Though it looks like at least Fedora and FreeBSD also update their ncurses (including terminfo) packages when the maintainer releases a new patch. Maybe Arch should do the same? Or maybe split out terminfo and have that receive more frequent updates?

There seem to be various bug reports that ask to include the patches, for example FS#11015, and FS#41663, and indeed this has been done in the past for the ncurses package, but only selectively because of the fear of ncurses patches changing the ABI and requiring a recompile of all depended packages. It looks like a problem with tmux+nvim has already been reported in FS#57596, but it seems to have fallen by the wayside, maybe just bump the ticket again.

21 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.