Package Details: liveroot 30-1

Git Clone URL: https://aur.archlinux.org/liveroot.git (read-only)
Package Base: liveroot
Description: Initcpio hooks for non persistent boot
Upstream URL: https://github.com/bluerider/liveroot.git
Licenses: GPL3
Submitter: bluerider
Maintainer: bluerider
Last Packager: bluerider
Votes: 15
Popularity: 0.647766
First Submitted: 2015-02-10 18:27
Last Updated: 2016-12-18 21:30

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

bluerider commented on 2015-04-07 01:24

@justin8 : Also, the name zswap is kind of a bad choice on my side. The kernel technically has another feature called zswap which does something else but still create a swap device in ram. The kernel zswap needs a backing device.

bluerider commented on 2015-04-07 01:22

1) uses zramctl
2) allows the existence of zram devices beforehand
3) removes only swap zram devices when called to stop
4) suppports effcient swap reset
5) allows different parameters for each zram module.

Look closely at zramswap's code; it thinks it's supposed to always start at /dev/zram0 (meaning no zram devices beforehand). It doesn't properly reset swap devices with swapon -f. When zram is told to stop, it's going to stop all zram devices since it thinks it's the only manager of zram devices (and they are all swap).

justin8 commented on 2015-04-07 00:45

Wait.. what is the difference between zswap and zramswap then?

bluerider commented on 2015-04-06 22:10

Updated to accept the cryptkey situation where it's :
<fs>|<fstype>|<path>

bluerider commented on 2015-04-06 17:44

The zswap package is now available at : <https://aur.archlinux.org/packages/zswap/>

The reason why swap functionality was removed from liveroot is because it interfered with the zramswap package in the AUR (that package does have other issues as listed in the comments by me). In addition, one couldn't control the swap device without fiddling around. Hence, the swap functionality was split into the zswap script which can be activated by systemd/rc.d.

bluerider commented on 2015-04-06 17:37

A similar swap functionality can be found at :
<https://github.com/bluerider/zswap>

I'll be uploading the package soon, but I'm having strange 644, 755 upload issues with the AUR.

bluerider commented on 2015-04-06 16:58

Updated to remove zram swap support from liveroot. In addition, /dev/zram1 is no longer hardcoded as the oroot device. Instead we now use whichever free zram block device we find.

bluerider commented on 2015-04-05 01:54

Please file bugs in the github tracker if possible. It's just easier for me to document the issues.

In addition, your zram0 issue is weird. Liveroot is always supposed to have at least 2 zram devices. In addition, liveroot sets up a nice swap partition on /dev/zram0. Can you get me an output of what's happening in your case?

KairiTech commented on 2015-04-05 01:43

Thank you so much for creating this hook. I have been doing something similar but in a much more complex way with a few extras. Your hook is so much better.

The zram # issue is mentioned in your comments but my system only creates zram0 so I changed your hook to reference that instead of zram1 and it works perfectly.

In my method, to speed up the loading to RAM I created a root filesystem archive with:

tar --xattrs --acls --exclude={/rootfs.tar.gz,/boot/*,/var/cache/pacman/pkg/*,/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} -vzcf /rootfs.tar.gz /

and extracted it with:

tar --xattrs --acls -xf /tmp/real_root/rootfs.tar.gz -C /new_root/

and this made the load into RAM at least 10X faster. Very noticeable if Arch is installed to a USB drive.

I also use remote LUKS headers and keys in /boot on a removable USB stick so I add the --header= and --key-file= options to overlay_flush and that worked perfectly too.

Barthalion commented on 2015-03-29 15:40

Just dropping by to thank you for your excellent work on this. Cheers!