The below method doesn't work anymore.
SSH is inaccessible/unsetable on the iso (2014-09)
Purpose: test if it's easily installable, using ZFS avoiding SystemD
Main web site: https://www.archbsd.net/
Wiki: https://wiki.archbsd.net/index.php/Main_Page
From VIrtualBOX: New / BSD / FreeBSD 64
RAM: 1024MB
Edit the VM for:
Save and launch the VM
Find the ip of your VM:
ifconfig
dhclient em0
Change root password
passwd
Setup sshd
vi /etc/ssh/sshd_config
Then change/uncomment
[…] PermitRootLogin yes […] PasswordAuthentication yes […] ChallengeResponseAuthentication no
Then Launch sshd:
/etc/init.d/sshd start
Then remote connect to it
kbdmap
gpart create -s gpt ada0 gpart add -s 128k -t freebsd-boot ada0 gpart add -s 1g -t freebsd-swap ada0 gpart add -t freebsd-zfs ada0
zpool create tank /dev/ada0p3
Interesting output:
cannot mount '/tank': failed to create mountpoint Exit 1
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i1 ada0
mdmfs -t swap -s 128m md /boot/zfs
Interesting output:
mdmfs: mdconfig (attach) exited with error code 1 Exit 1
zpool export tank
zpool import -o altroot=/mnt -o cachefile=/boot/zfs/zpool.cache -f tank
Interesting output:
cannot mount '/mnt/tank': failed to create mountpoint Exit 1
zfs set checksum=fletcher4 tank
zfs create -o canmount=off -o mountpoint=legacy tank/ROOT zfs create -o canmount=on -o compression=on -o mountpoint=/ tank/ROOT/archbsd-0 zfs create -o compression=on -o mountpoint=/home tank/HOME zfs create -o compression=off -o mountpoint=/root tank/HOME/root
pacstrap /mnt base
Interesting output …
downloading required keys... :: Import PGP key 2048R/, "Claudiu Traistaru <claudiu2004@gmail.com>", created: 2013-09-11? [Y/n] error: key "Claudiu Traistaru <claudiu2004@gmail.com>" could not be imported error: required key missing from keyring error: failed to commit transaction (unexpected error) Errors occurred, no packages were upgraded. ==> ERROR: Failed to install packages to new root Exit 1
Workaround:
cp /etc/pacman.conf /tmp/.
modifiy /etc/pacman.conf like:
#SigLevel = Required DatabaseOptional SigLevel = Never
then re-run pacstrap as:
pacstrap -C /tmp/pacman.conf /mnt base
Errors / warnings:
[…] ( 6/27) installing bash [######################################################################] 100% install-info: No such file or directory for /usr/share/info/bash.info.gz […] (24/27) installing pacman [######################################################################] 100% >>> Run `pacman-key --init; pacman-key --populate archlinux` >>> to import the data required by pacman for package verification. >>> See: https://www.archlinux.org/news/having-pacman-verify-packages
chroot /mnt
cat << EOF > /etc/fstab # Device Mountpoint FStype Options Dump Pass # proc /proc procfs rw 0 0 /dev/ada0p2 none swap sw 0 0 EOF
cat << EOF >> /boot/loader.conf vfs.root.mountfrom="zfs:tank/ROOT/archbsd-0" EOF
no need to add this (already in the file
25 # Load File-System Support 26 zfs_load="YES"
ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
echo 'HOSTNAME="archBSD"' > /etc/conf.d/hostname
passwd
Exit from chroot
exit
cp /boot/zfs/zpool.cache /mnt/boot/zfs/zpool.cache
Fails … of course :@
cp: /boot/zfs/zpool.cache: No such file or directory Exit 1
zpool set bootfs=tank/ROOT/archbsd-0 tank
echo zfs_enable="YES" > /mnt/etc/rc.conf
Cross fingers …
The adventure begun
pacman -S base-devel
Work in progress !