Be sure to understand your network configuration. At the risk of potential boot errors, this lets you take ZFS snapshots of your kernel and initrds, which may be really useful to you after a disaster. I was surprised to see that this works, even under Debian/Devuan. You'll notice that we're breaking with tradition of creating a separate partition for /boot and / partitions like we've previously done. sbin/parted -script -align optimal /dev/sda set 1 boot onĬheck that the partition table is correct: sbin/parted -script -align optimal /dev/sda mkpart primary 1MiB 100% sbin/parted -script -align optimal /dev/sda mklabel msdos Your actual mileage may vary.ĭd if=/dev/zero of=/dev/sda bs=1M count=2 I'm assuming that the root drive you're going to format is /dev/sda. These steps come with no warranty whatsoever. ZFS itself enjoys a large memory footprint, so I don't suggest this for any resource-constrained, embedded setups. Attempting this with anything less will result in spurious errors that will impair your progress. Make sure your system has a drive you don't care about formatting, and at least 4GB of RAM. Moreover, kernel module builds fail on the Devuan desktop live environment, so use the minimal live ISO. We don't need them, we're just going to be typing our way to joy. The following howto uses the Devuan Jessie 1.0.0 minimal Live CD ISO (devuan_jessie_1.0.0_amd64_minimal-live.iso), which lacks any desktop environments. But they also adopted systemd, which is Muy Malo, so we have to roll our own zfs.ko. I say "taking a big step backwards" because Canonical, the maker of Ubuntu Linux, took a big step forward by integrating the ZFS kernel module into their kernels from 16.04 onwards. We're taking a big step backwards here and doing some old-school compiling of DKMS modules. It is meant to be read and understood in the context of my other ZFS-on-root howtos and is not intended for a beginner ZFS (or Linux) enthusiast. The following is a quick and dirty howto for setting up a Devuan system with encrypted ZFS on root. Its goal is "software freedom", which is code for "no systemd", so it's perfect for our goals. The Devuan Linux distribution is still very new at this point and recently hit its 1.0 release. Sometimes a ridiculous way, but a way nonetheless.Ī number of folks who still have their heads about them and understand that some cures are worse than the disease have forked Debian and made it mo' better. What else can you do but curse the darkness? All is lost! Let's say this problem is compounded by the fact that every major Linux distribution has adopted same said init system and it can be particularly thorny to remove it and replace it with something, anything sane. Let's say that your hobbies include putting ZFS onto different things, but you have a deep-seated loathing of amateur init systems and their authors.
0 Comments
Leave a Reply. |