Commit 3e8fca43 authored by Benjamin Slade's avatar Benjamin Slade

more introduction, more pre-initialisation

- added more introductory material on use of scripts; suggestions on
  installation distros
- added some distro detection stuff & shell conditions to
  pre-initialisation script to work for both Void & Ubuntu livecds
parent 913c0fb5
#!/bin/bash
# assuming use of hrmpf [ https://github.com/leahneukirchen/hrmpf/ ]
# assuming use of hrmpf [ https://github.com/leahneukirchen/hrmpf/ ] or Ubuntu livecd
# - none of this is perhaps strictly necessary and may change
# TODO: add system-detection
if [ ${lsb_release -si} == "VoidLinux" ]
then
# get rid of old kernel to save dkms compilation time
xbps-remove linux4.9 linux4.9-headers
xbps-remove linux4.9 linux4.9-headers
# update essential things - xbps
xbps-install -Su
......@@ -13,7 +17,24 @@ xbps-install -Su
echo "You may want to go and put the kettle on; this can take a bit"
# then install up-to-date zfs (the long bit)
xbps-install zfs
xbps-install zfs
# modprobe: activate zfs
/sbin/modprobe zfs
elif [ ${lsb_release -si} == "Ubuntu" ]
then
# become root
sudo su
# install zfs components
apt install zfsutils-linux
# modprobe: activate zfs
/sbin/modprobe zfs
else
echo "I'm not sure what system you're using. You probably know. Do what you need to and move to the next script."
fi
You need to somehow get the scripts over to the machine you're installing on. This may involve installing =git= and/or =rsync= on that machine.
For your installation medium, you might use either the [[https://github.com/leahneukirchen/hrmpf/][hrmpf rescue system]], itself built on Void Linux, or else an [[https://ubuntu.com/download/desktop][Ubuntu Live CD]] (the latter having the advantage of not having to recompile ZFS DKMS modules).
Run each script in order with =. <scriptname>= (in order to make variables available to next stage).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment