Skip to content

u/ramsdenj

In this archive from Mar 2016 to Oct 2024

18
posts
140
comments
8
media
934
score

An AUR package basically consists of a git repo containing a PKGBUILD and a few other files. The package doesn't contain any of the source software, other than occasionally patches and slight modifications.

If it's a -git (or other VCS) package, it might get automatically updated to the latest tag of the git repo in question - the same PKGBUILD should continue to update automatically when makepkg is run.

For a regular package, the maintainer will push updates with each version to the AUR, and to update you will have to grab the latest PKGBUILD and re-run makepkg or use your AUR manager to update.

14 points

ZFS is solid, especially on Arch, where I'd say it's one of the better supported platforms with archzfs where you get binary updates.

If you want to make use of all your space, your best bet would be creating two zpools, using just the SSD for one, and creating a mirror with the HDDs. If you try to make a mirror with HDD's and SSDs, you won't get the full performance of your SSD.

Ideally you would get another SSD and make a mirror for resiliency and redundancy, and to make use of ZFS's healing capacity, but I guess it depends how important the data on me SSD is. If it's just your system, and not your data, and reinstalling or reverting to backups if you lose a disk, then you should be fine.

I tend to create a ton of data sets, but ideally you would make one for at least your root and home.

Alternatively you can format the SSD XFS or ext4 and use that for your system sticking less used data on hard drives in a zpool.

2 points

You're going to want to create a lazy unmount override for any mountpoint you want lazy unmounted.

To check all of the mountpoints under /var:

systemctl list-units -t mount 'var*' --full

You can then add an override for any mount points:

systemctl edit var-log.mount
systemctl edit var-log-journal.mount

And add the lazy unmount option for each of them.

Unless you have actually mounted a dataset to /var, you can remove the override mentioned in the link.

You could also try adding RequiresMountsFor for any parent datasets as well, although I'm not sure if it'll help, since I would assume if /var/log/journal is listed as required any parent datasets would be implicitly added.

1 points

If I recall, if you remove the shutdown hook it ends up stalling on shutdown. It doesn't actually remove the message. I'm getting the same message but I don't think it's anything to be concerned about. It just can't unmount because the journal is still being written to. The shutdown hook should occur after systemd has finished, and will unmount properly.

A possible thing that might help would be using lazy unmount.

3 points

I'd say definitely go with a venv if it's for a project, and not something you need system-wide.

python -m venv venv
. venv/bin/activate
pip install ${package}

Why is pip a nightmare?

7 points

It's not really complicated once you have it set up, It just requires a few more steps initially like creating a local repository configuration.

I like the idea of building everything in a clean chroot which is part of the reason I use it. I also think the developer really knows his stuff and feel like he is likely going to be following best practices in Arch due to his position in the community.

I also think it ends up being a way to use packages which is more natural to Arch. Rather than building things and installing them with -U, you end up having them as packages in your local repository, and can treat them as if they are the same as the packages from Arch main.

3 points

I do not think it is problematic at all and anyone who does, has probably not used it recently. What some people occasionally to as a problem point is the fact that zfs must be recompiled on kernel upgrade, I personally have never had trouble with this.

There are two solutions to approaching kernel upgrades, one which you mentioned above using dkms - which is really the only solution if using a custom kernel, or two using binary packages - which is what I prefer. Using binary packages via archzfs means you just have another package to upgrade upon kernel upgrade, and you can only really run into an issue if you ignore the fact that you have a package dependency, and force an upgrade. The archzfs project has also put some work into automation recently which means package updates are extremely quick, and usually barely lag behind the kernel.

I would definitely recommend it over btrfs, it is a proven filesystem, with a great interface, huge community support, and it's been proven to be extremely reliable.

The ZFS on Linux project is doing some amazing work these days, for example native ZFS encryption was developed by someone in the ZoL project, and is now being merged into FreeBSD and the other OpenZFS projects.

Once you get snapshots, rollbacks, and boot environments you will never go back. Being able to go back in time and grab a file you deleted - and then realized you needed, or revert back to the state of a file at a certain time is extremely useful.

2 points

I'm not sure what you mean by "because you can't create datasets of datasets".

The reason /etc cannot be in a different dataset from root is because each dataset is its own filesystem, and the /etc directory must be in the / filesystem. There are things in /etc like the fstab that are needed early on, so they must be part of the / filesystem so your system knows what to mount or configure.

2 points

ZFS is very well supported by archzfs, and if you use their binary packages, kernel upgrades aren't a problem.

/etc cannot be on a separate dataset unfortunately since it is required to be part of root.

I like to create quite a few datasets, but as you mentioned, I'd recommend at minimum starting with:

  • ${pool}/ROOT/default - For root, to support boot environments:
  • ${pool}/home
2 points

I use 4K screens on all of my systems running KDE and have I've had best results once I've set X -dpi, and EnableHDMI in /etc/sddm.conf.d/sddm.conf with:

[X11]
# Enable Qt's automatic high-DPI scaling
EnableHiDPI=true

# Arguments passed to the X server invocation
ServerArguments=-nolisten tcp -dpi 259
1 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.