ale# arch linux on zfs by antergos live iso
pacman -S openssh zsh
sudo passwd antergos
systemctl enable sshd
systemctl start sshd
ip a
# per ssh connecten ->
sudo zsh
pacman -S vim
zpool import
df
zpool import -N rpool
zfs set mountpoint=/mnt rpool/ROOT/arch
zfs set mountpoint=/mnt/home rpool/home
zfs set mountpoint=/mnt/var/log rpool/log
zfs set mountpoint=/mnt/var/cache/pacman/pkg rpool/pkg
zfs mount rpool/ROOT/arch
zfs mount rpool/home
zfs mount rpool/log
zfs mount rpool/pkg
arch-chroot /mnt
mount /boot
df
exit
umount /mnt/boot
zfs umount -a
zfs set mountpoint=/ rpool/ROOT/arch
zfs set mountpoint=/home rpool/home
zfs set mountpoint=/var/log rpool/log
zfs set mountpoint=/var/cache/pacman/pkg rpool/pkg
# zfs set canmount=noauto rpool/ROOT/arch
zpool export rpool
reboot
pacman -Sy openssh zsh vim
systemctl enable sshd.service
systemctl start sshd
sudo passwd antergos
ip addr | grep inet
# per ssh connecten ->
sudo zsh
lsblk
gdisk /dev/sda
n
1
enter
+1M
ef02
n
2
enter
+300M
ef00
n
3
enter
enter
bf00
x
a
2
2
enter
# Attribute value is 0000000000000004. Set fields are:
# 2 (legacy BIOS bootable)
m
# Command (? for help):
p
# Disk /dev/sda: 20971520 sectors, 10.0 GiB
# Model: VBOX HARDDISK
# Sector size (logical/physical): 512/512 bytes
# Disk identifier (GUID): C8FE49C3-230A-4C8A-BE36-2329A18CCFD9
# Partition table holds up to 128 entries
# Main partition table begins at sector 2 and ends at sector 33
# First usable sector is 34, last usable sector is 20971486
# Partitions will be aligned on 2048-sector boundaries
# Total free space is 2014 sectors (1007.0 KiB)
# Number Start (sector) End (sector) Size Code Name
# 1 2048 4095 1024.0 KiB EF02 BIOS boot partition
# 2 4096 618495 300.0 MiB 8300 Linux filesystem
# 3 618496 20971486 9.7 GiB BF00 Solaris root
# Command (? for help):
w
# Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
# PARTITIONS!!
# Do you want to proceed? (Y/N):
y
# OK; writing new GUID partition table (GPT) to /dev/sda.
# Warning: The kernel is still using the old partition table.
# The new table will be used at the next reboot or after you
# run partprobe(8) or kpartx(8)
# The operation has completed successfully.
lsblk
# NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
# loop0 7:0 0 1.8G 1 loop /run/archiso/sfs/root-image
# sda 8:0 0 10G 0 disk
# |-sda1 8:1 0 1M 0 part
# |-sda2 8:2 0 300M 0 part
# '-sda3 8:3 0 9.7G 0 part
# sr0 11:0 1 1.9G 0 rom /run/archiso/bootmnt
mkfs.vfat -n BOOT_A -F 32 /dev/sda2
# mkfs.fat 4.1 (2017-01-24)
# hier id von part3 eintragen,...
zpool create -o ashift=12 -O atime=off -O canmount=off -O compression=lz4 -O normalization=formD rpool /dev/disk/by-id/
zpool status
# pool: rpool
# state: ONLINE
# scan: none requested
# config:
# NAME STATE READ WRITE CKSUM
# rpool ONLINE 0 0 0
# ata-VBOX_HARDDISK_VBfe5574d8-e3faefd6-part2 ONLINE 0 0 0
#
# errors: No known data errors
zfs create -o canmount=off -o mountpoint=none rpool/ROOT
zfs create -o mountpoint=/ rpool/ROOT/arch
# cannot mount '/': directory is not empty
# filesystem successfully created, but not mounted
zfs create -o setuid=off -o mountpoint=/home rpool/home
# cannot mount '/home': directory is not empty
# filesystem successfully created, but not mounted
zfs create -o setuid=off -o mountpoint=/var/cache/pacman/pkg rpool/pkg
# cannot mount '/var/cache/pacman/pkg': directory is not empty
# filesystem successfully created, but not mounted
zfs create -o setuid=off -o mountpoint=/var/log rpool/log
# cannot mount '/var/log': directory is not empty
# filesystem successfully created, but not mounted
mysql zvol:
# zfs create -o recordsize=8K \
-o primarycache=metadata \
-o mountpoint=/var/lib/postgres \
-o logbias=throughput \
<pool>/postgres
zfs list
# NAME USED AVAIL REFER MOUNTPOINT
# rpool 948K 9.38G 96K /rpool
# rpool/ROOT 192K 9.38G 96K none
# rpool/ROOT/arch 96K 9.38G 96K /
# rpool/home 96K 9.38G 96K /home
# rpool/log 96K 9.38G 96K /var/log
# rpool/pkg 96K 9.38G 96K /var/cache/pacman/pkg
zpool export rpool
zpool import
# pool: rpool
# id: 6718501382938953124
# state: ONLINE
# action: The pool can be imported using its name or numeric identifier.
# config:
# rpool ONLINE
# ata-VBOX_HARDDISK_VBfe5574d8-e3faefd6-part2 ONLINE
zpool import -R /mnt rpool
df
# Filesystem 1K-blocks Used Available Use% Mounted on
# dev 1008728 0 1008728 0% /dev
# run 1022552 47288 975264 5% /run
# /dev/sr0 1991040 1991040 0 100% /run/archiso/bootmnt
# cowspace 327680 55624 272056 17% /run/archiso/cowspace
# /dev/loop0 1875584 1875584 0 100% /run/archiso/sfs/root-image
# root-image 327680 55624 272056 17% /
# tmpfs 1022552 0 1022552 0% /dev/shm
# tmpfs 1022552 0 1022552 0% /sys/fs/cgroup
# tmpfs 1022552 12800 1009752 2% /tmp
# tmpfs 204508 48 204460 1% /run/user/1000
# rpool/ROOT/arch 9839744 128 9839616 1% /mnt
# rpool/home 9839744 128 9839616 1% /mnt/home
# rpool/pkg 9839744 128 9839616 1% /mnt/var/cache/pacman/pkg
# rpool/log 9839744 128 9839616 1% /mnt/var/log
ls /mnt
# home var
ls /mnt/var
# cache log
mkdir /mnt/boot
mkfs.vfat -F 32 -n BOOT /dev/sda2
mount /dev/sda2 /mnt/boot
df
# Filesystem 1K-blocks Used Available Use% Mounted on
# /dev/sda2 306584 4 306580 1% /mnt/boot
pacstrap /mnt base base-devel bash-completion zsh dosfstools efibootmgr grub
# --> Creating install root at /mnt
# --> Installing packages to /mnt
# error: could not register 'multilib' database (database already registered)
# :: Synchronizing package databases...
genfstab -U /mnt >> /mnt/etc/fstab
vi /mnt/etc/fstab
# alles löschen ausser sda2/boot
# falls mirror, dann noauto voran setzen, sonst kein boot
arch-chroot /mnt
echo arch1 > /etc/hostname
pacman -S vim
echo LANG=de_DE.UTF-8 > /etc/locale.conf
echo LANGUAGE=de_DE >> /etc/locale.conf
vi /etc/locale.gen
cat /etc/locale.gen| grep -v "#"
cat <<EOF >>/etc/locale.gen
de_DE.UTF-8 UTF-8
en_US.UTF-8 UTF-8
EOF
locale-gen
> Generating locales...
> de_DE.UTF-8... done
> en_US.UTF-8... done
> Generation complete.
echo KEYMAP=de-latin1 > /etc/vconsole.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
passwd
> New password:
> Retype new password:
> passwd: password updated successfully
useradd -m -g users -G wheel,audio,video -s /bin/bash cm
passwd cm
> New password:
> Retype new password:
> passwd: password updated successfully
pacman -S vim linux-headers git dkms grub parted
> resolving dependencies...
> looking for conflicting packages...
> Packages (7) gpm-1.20.7-8 perl-error-0.17025-2 vim-runtime-8.0.1542-2 ## dkms-2.5-1 git-2.16.2-1 linux-headers-4.15.6-1
> vim-8.0.1542-2
> Total Download Size: 20.31 MiB
> Total Installed Size: 107.43 MiB
> :: Proceed with installation? [Y/n]
> ...
visudo
> %wheel ALL=(ALL) NOPASSWD: ALL
###### Optional
## vim /etc/pacman.conf
## G
## o
## [archzfs]
## Server = http://archzfs.com/$repo/x86_64
##
## pacman-key -r 5E1ABF240EE7A126
## > gpg: key 5E1ABF240EE7A126: "Jesus Alvarez <jeezusjr@gmail.com>" not changed
## > gpg: Total number processed: 1
## > gpg: unchanged: 1
## > ==> Updating trust database...
## > gpg: next trustdb check due at 2018-06-25
##
## pacman-key --lsign-key 5E1ABF240EE7A126
##
## pacman-key --lsign-key 5E1ABF240EE7A126
## > -> Locally signing key 5E1ABF240EE7A126...
## > ==> Updating trust database...
## > gpg: marginals needed: 3 completes needed: 1 trust model: pgp
## > gpg: depth: 0 valid: 1 signed: 9 trust: 0-, 0q, 0n, 0m, 0f, 1u
## > gpg: depth: 1 valid: 9 signed: 72 trust: 1-, 0q, 0n, 8m, 0f, 0u
## > gpg: depth: 2 valid: 72 signed: 8 trust: 72-, 0q, 0n, 0m, 0f, 0u
## > gpg: next trustdb check due at 2018-06-25
##
### https://github.com/archzfs/archzfs/issues/260#issuecomment-406661710
##
###### untested
## [demz-repo-core]
## Server = http://demizerone.com/$repo/$arch
## SigLevel = Never
##
## [root@ant-18 /]# pacman -Sy
##
## [root@ant-18 /]# pacman -S zfs-linux
## > resolving dependencies...
## > looking for conflicting packages...
## > Packages (4) spl-linux-0.7.6.4.15.6.1-1 spl-utils-common-0.7.6-2 zfs-utils-common-0.7.6-2 zfs-## linux-0.7.6.4.15.6.1-1
## > Total Download Size: 4.54 MiB
## > Total Installed Size: 12.75 MiB
## > :: Proceed with installation? [Y/n] y
## > (4/4) checking keys in keyring [##############################################] 100%
## > (4/4) checking package integrity [##############################################] 100%
## > (4/4) loading package files [##############################################] 100%
## > (4/4) checking for file conflicts [##############################################] 100%
## > (4/4) checking available disk space [##############################################] 100%
## > :: Processing package changes...
## > (1/4) installing spl-utils-common [##############################################] 100%
## > (2/4) installing spl-linux [##############################################] 100%
## > >>> Updating SPL module dependencies
## > (3/4) installing zfs-utils-common [##############################################] 100%
## > (4/4) installing zfs-linux [##############################################] 100%
## > >>> Updating ZFS module dependencies
## > :: Running post-transaction hooks...
## > (1/3) Updating linux module dependencies...
## > (2/3) Updating linux initcpios...
## > ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
## > error: command failed to execute correctly
## > (3/3) Arming ConditionNeedsUpdate...
### neues terminal
sudo su
zpool set cachefile=/etc/zfs/zpool.cache rpool
cp /etc/zfs/zpool.cache /mnt/etc/zfs
exit
exit
### zurück in installationsterminal
systemctl enable zfs.target zfs.target zfs-mount.service
> Created symlink /etc/systemd/system/multi-user.target.wants/zfs.target -> /usr/lib/systemd/system/zfs.target.
> Created symlink /etc/systemd/system/zfs-share.service.wants/zfs-mount.service -> /usr/lib/systemd/system/zfs-mount.service.
> Created symlink /etc/systemd/system/zfs.target.wants/zfs-mount.service -> /usr/lib/systemd/system/zfs-mount.service.
vi /etc/mkinitcpio.conf
> ## HOOKS=(base udev autodetect modconf block keyboard zfs filesystems)
mkinitcpio -p linux
vi /etc/systemd/journald.conf
> [Journal]
> Storage=volatile
parted /dev/sda print
> Model: ATA VBOX HARDDISK (scsi)
> Disk /dev/sda: 10.7GB
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
> Disk Flags:
> Number Start End Size File system Name Flags
> 1 1049kB 2097kB 1049kB BIOS boot partition bios_grub, legacy_boot
> 2 2097kB 317MB 315MB fat32 EFI System boot, esp
> 3 317MB 10.7GB 10.4GB Solaris root
grub-mkconfig -o /boot/grub/grub.cfg
ln -s /dev/sda3 /dev/ata-VBOX_HARDDISK_VBfe5574d8-e3faefd6-part3
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=i386-pc --recheck /dev/sda
vim /boot/grub/grub.cfg
#########
echo 'Loading Linux linux ...'
linux /vmlinuz-linux zfs=rpool rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
#########
ZPOOL_VDEV_NAME_PATH=1 grub-mkconfig -o /boot/grub/grub.cfg
ln -s /dev/sda3 /dev/ata-VBOX_HARDDISK_VBfe5574d8-e3faefd6-part3
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=i386-pc /dev/sda
zbectl
grub-mkconfig -o /boot/grub/grub.cfg
> /usr/bin/grub-probe: error: failed to get canonical path of `/dev/bus-Your_Disk_ID-part#'
> grub-install: error: failed to get canonical path of `/dev/bus-Your_Disk_ID-part#'
> To work around this you must set this environment variable: ZPOOL_VDEV_NAME_PATH=1. For example:
ZPOOL_VDEV_NAME_PATH=1 grub-mkconfig -o /boot/grub/grub.cfg
#### EFI
bootctl install
> Created "/boot/EFI".
> Created "/boot/EFI/systemd".
> Created "/boot/EFI/BOOT".
> Created "/boot/loader".
> Created "/boot/loader/entries".
> Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".
> Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".
> Not booted with EFI, skipping EFI variable setup.
vi /boot/loader/loader.conf
> ## timeout 3
> ## default arch
vi /boot/loader/entries/arch.conf
> ## title Arch Linux ZFS
> ## linux /vmlinuz-linux
> ## initrd /initramfs-linux.img
> ## options zfs=rpool/ROOT/arch rw
efibootmgr
pacman -S acpid cronie avahi
> resolving dependencies...
> looking for conflicting packages...
> Packages (5) libdaemon-0.14-3 run-parts-4.8.4-1 acpid-2.0.28-1 avahi-0.7-4 cronie-1.5.1-1
> Total Download Size: 0.57 MiB
> Total Installed Size: 2.36 MiB
> :: Proceed with installation? [Y/n] y
> ...
systemctl enable acpid.service cronie.service avahi-daemon
> ## Created symlink /etc/systemd/system/multi-user.target.wants/acpid.service → /usr/lib/systemd/system/acpid.service.
> ## Created symlink /etc/systemd/system/multi-user.target.wants/cronie.service → /usr/lib/systemd/system/cronie.service.
> ## Created symlink /etc/systemd/system/dbus-org.freedesktop.Avahi.service → /usr/lib/systemd/system/avahi-daemon.service.
> ## Created symlink /etc/systemd/system/multi-user.target.wants/avahi-daemon.service → /usr/lib/systemd/system/avahi-daemon.service.
> ## Created symlink /etc/systemd/system/sockets.target.wants/avahi-daemon.socket → /usr/lib/systemd/system/avahi-daemon.socket.
pacman -S virtualbox-guest-dkms xorg-server xorg-xinit xfce4 xfce4-goodies lightdm lightdm-gtk-greeter chromium networkmanager network-manager-applet
> ## enter, enter, enter, enter
systemctl enable lightdm.service NetworkManager
> Created symlink /etc/systemd/system/display-manager.service → /usr/lib/systemd/system/lightdm.service.
> Created symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service → /usr/lib/systemd/system/NetworkManager.service.
> Created symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service → /usr/lib/systemd/system/NetworkManager.service.
> Created symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service → /usr/lib/systemd/system/NetworkManager-dispatcher.service.
> Created symlink
systemctl enable systemd-timesyncd.service
> Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → /usr/lib/systemd/system/systemd-timesyncd.service.
exit
exit
ant-18# umount -R /mnt
ant-18# df
Filesystem 1K-blocks Used Available Use% Mounted on
dev 1008728 0 1008728 0% /dev
run 1022552 47288 975264 5% /run
/dev/sr0 1991040 1991040 0 100% /run/archiso/bootmnt
cowspace 327680 43388 284292 14% /run/archiso/cowspace
/dev/loop0 1875584 1875584 0 100% /run/archiso/sfs/root-image
root-image 327680 43388 284292 14% /
tmpfs 1022552 0 1022552 0% /dev/shm
tmpfs 1022552 0 1022552 0% /sys/fs/cgroup
tmpfs 1022552 6412 1016140 1% /tmp
tmpfs 204508 40 204468 1% /run/user/1000
ant-18# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 1.93G 7.46G 96K /mnt/rpool
rpool/ROOT 1.65G 7.46G 96K none
rpool/ROOT/arch 1.65G 7.46G 1.65G /mnt
rpool/home 96K 7.46G 96K /mnt/home
rpool/log 116K 7.46G 116K /mnt/var/log
rpool/pkg 287M 7.46G 287M /mnt/var/cache/pacman/pkg
ant-18# zfs set canmount=noauto rpool/ROOT/arch
ant-18# zfs umount -a
ant-18# zpool export rpool
ant-18# exit
reboot
einguter plan bullet proof
START: pacman -S openssh zsh sudo passwd antergos systemctl enable sshd systemctl start sshd ip a -> ssh sudo zsh pacman -S vim
zpool import df zpool import -N filezsys zfs set mountpoint=/mnt filezsys/ROOT/arch zfs set mountpoint=/mnt/home filezsys/home zfs set mountpoint=/mnt/var/log filezsys/log zfs set mountpoint=/mnt/var/cache/pacman/pkg filezsys/pkg
zfs mount filezsys/ROOT/arch zfs mount filezsys/home zfs mount filezsys/log zfs mount filezsys/pkg arch-chroot /mnt
mount /boot df
END: exit umount /mnt/boot zfs umount -a zfs set mountpoint=/ filezsys/ROOT/arch zfs set mountpoint=/home filezsys/home zfs set mountpoint=/var/log filezsys/log zfs set mountpoint=/var/cache/pacman/pkg filezsys/pkg
reboot
R60: Substantive werden groß geschrieben. Grammatische Schreibweisen: adressiert Appell asynchron Atmosphäre Autor bißchen Ellipse Emission gesamt heraus Immission interessiert korreliert korrigiert Laie nämlich offiziell parallel reell Satellit Standard Stegreif voraus
pacman -Sy openssh zsh vim systemctl enable sshd.service systemctl start sshd sudo passwd antergos ip addr | grep inet -> ssh sudo zsh
lsblk
gdisk /dev/sda
n 1 enter +1M ef02
n 2 enter +300M ef00
n 3 enter enter bf00
x a 2 2 enter
m
Command (? for help): p
Disk /dev/sda: 20971520 sectors, 10.0 GiB
Model: VBOX HARDDISK
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): C8FE49C3-230A-4C8A-BE36-2329A18CCFD9
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 20971486
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name 1 2048 4095 1024.0 KiB EF02 BIOS boot partition 2 4096 618495 300.0 MiB 8300 Linux filesystem 3 618496 20971486 9.7 GiB BF00 Solaris root
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
Do you want to proceed? (Y/N): y OK; writing new GUID partition table (GPT) to /dev/sda. Warning: The kernel is still using the old partition table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) The operation has completed successfully.
[ant-18.3 ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 1.8G 1 loop /run/archiso/sfs/root-image sda 8:0 0 10G 0 disk |-sda1 8:1 0 1M 0 part |-sda2 8:2 0 300M 0 part '-sda3 8:3 0 9.7G 0 part sr0 11:0 1 1.9G 0 rom /run/archiso/bootmnt
[ant-18.3 ~]$ mkfs.vfat -n BOOT_A -F 32 /dev/sda2 [ant-18.3 ~]$ mkfs.fat 4.1 (2017-01-24)
[ant-18.3 ~]$ zpool create -o ashift=12 -O atime=off -O canmount=off -O compression=lz4 -O normalization=formD filezsys /dev/disk/by-id/
[root@ant-18 antergos]# zpool status pool: filezsys state: ONLINE scan: none requested config:
NAME STATE READ WRITE CKSUM
filezsys ONLINE 0 0 0
ata-VBOX_HARDDISK_VBfe5574d8-e3faefd6-part2 ONLINE 0 0 0
errors: No known data errors
create Filesystems
zfs create -o canmount=off -o mountpoint=none filezsys/ROOT
zfs create -o mountpoint=/ filezsys/ROOT/arch
zfs create -o setuid=off -o mountpoint=/home filezsys/home
zfs create -o setuid=off -o mountpoint=/var/cache/pacman/pkg filezsys/pkg
zfs create -o setuid=off -o mountpoint=/var/log filezsys/log
zfs list
NAME USED AVAIL REFER MOUNTPOINT filezsys 948K 9.38G 96K /filezsys filezsys/ROOT 192K 9.38G 96K none filezsys/ROOT/arch 96K 9.38G 96K / filezsys/home 96K 9.38G 96K /home filezsys/log 96K 9.38G 96K /var/log filezsys/pkg 96K 9.38G 96K /var/cache/pacman/pkg
zpool export filezsys
zpool import
zpool import -R /mnt filezsys
df
ls /mnt
# home var
ls /mnt/var
# cache log
mkdir /mnt/boot
### doublecheck: mkfs.vfat -F 32 -n BOOT /dev/sda2
### doublecheck: mount /dev/sda2 /mnt/boot
df
# Filesystem 1K-blocks Used Available Use% Mounted on
# /dev/sda2 306584 4 306580 1% /mnt/boot
Installation
pacstrap /mnt base base-devel bash-completion zsh dosfstools efibootmgr grub
genfstab -U /mnt >> /mnt/etc/fstab
vi /mnt/etc/fstab
alles löschen ausser sda2/boot falls mirror, dann noauto voran setzen, sonst kein boot
CHROOT
arch-chroot /mnt
in dem neuen root
echo arch1 > /etc/hostname
pacman -S vim
pacman -R vi
ln -s /usr/bin/vim /usr/bin/vi
cat <<EOF >>/etc/locale.gen
de_DE.UTF-8 UTF-8
en_US.UTF-8 UTF-8
EOF
locale-gen
echo LANG=de_DE.UTF-8 > /etc/locale.conf
echo LANGUAGE=de_DE >> /etc/locale.conf
echo KEYMAP=de-latin1 > /etc/vconsole.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
passwd
user anlegen
useradd -m -g users -G wheel,audio,video -s /bin/bash cm
passwd cm
Paketinstallation
pacman -S vim linux-headers git dkms grub parted
visudo
vi /etc/pacman.conf
G
o
[archzfs]
Server = http://archzfs.com/$repo/x86_64
untested
[demz-repo-core]
Server = http://demizerone.com/$repo/$arch
SigLevel = Never
pacman-key -r 5E1ABF240EE7A126
pacman-key --lsign-key 5E1ABF240EE7A126
pacman -Sy
pacman -S zfs-linux
keine ahnung was und wofür, im Aussensystem: > sudo su > [ant-18.3 ~]$ # zpool set cachefile=/etc/zfs/zpool.cache filezsys > [ant-18.3 ~]$ # cp /etc/zfs/zpool.cache /mnt/etc/zfs > exit; exit
bootenvironment und dienste
systemctl enable zfs.target zfs.target zfs-mount.service
vi /etc/mkinitcpio.conf
HOOKS=(base udev autodetect modconf block keyboard zfs filesystems)
mkinitcpio -p linux
vi /etc/systemd/journald.conf
[Journal] Storage=volatile
grub / legacy boot
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=i386-pc --recheck /dev/sda
falls fehler:
[root@ant-18 /]# ZPOOLVDEVNAME_PATH=1 grub-mkconfig -o /boot/grub/grub.cfg
[root@ant-18 /]# ln -s /dev/sda3 /dev/ata-VBOXHARDDISKVBfe5574d8-e3faefd6-part3
[root@ant-18 /]# grub-mkconfig -o /boot/grub/grub.cfg
[root@ant-18 /]# grub-install --target=i386-pc /dev/sda
zbectl!!!
grub-mkconfig -o /boot/grub/grub.cfg
/usr/bin/grub-probe: error: failed to get canonical path of
/dev/bus-Your_Disk_ID-part#' grub-install: error: failed to get canonical path of
/dev/bus-YourDiskID-part#' To work around this you must set this environment variable: ZPOOLVDEVNAME_PATH=1. For example:ZPOOLVDEVNAME_PATH=1 grub-mkconfig -o /boot/grub/grub.cfg
Ende falls fehler
vim /boot/grub/grub.cfg
echo 'Loading Linux linux ...' linux /vmlinuz-linux zfs=filezsys rw quiet echo 'Loading initial ramdisk ...' initrd /initramfs-linux-fallback.img
parted /dev/sda print
EFI:
bootctl install
vi /boot/loader/loader.conf
timeout 3 default arch
vi /boot/loader/entries/arch.conf
title Arch Linux ZFS
linux /vmlinuz-linux
initrd /initramfs-linux.img
options zfs=filezsys/ROOT/arch rw
efibootmgr
efibootmgr -v
efibootmgr -c -d /dev/sda -p 2 -L ":::.. filez - Arch ..:::" -l "\EFI\systemd\systemd-bootx64.efi" -v
efibootmgr
weitere efibootloader befehle
efibootmgr --bootorder 0009,0008,0007,0000
efibootmgr -b 0008 -A # inaktiv
efibootmgr -b 0008 -a # aktiv
efibootmgr -b 0008 -B # löschen
abschliessende schritte / paketinstallation
pacman -S acpid cronie avahi networkmanager
systemctl enable acpid.service cronie.service avahi-daemon NetworkManager
falls x:
pacman -S virtualbox-guest-dkms xorg-server xorg-xinit xfce4 xfce4-goodies lightdm lightdm-gtk-greeter chromium networkmanager network-manager-applet
enter, enter, enter, enter
systemctl enable lightdm.service NetworkManager
systemctl enable systemd-timesyncd.service
abschluss
exit
exit
chroot ende, installationssystem:
sudo zsh
umount -R /mnt
df
zfs list
reboot
zfs set canmount=noauto filezsys/ROOT/arch
zfs umount -a
zpool export filezsys
exit
reboot
R60: Substantive werden groß geschrieben. Grammatische Schreibweisen: adressiert Appell asynchron Atmosphäre Autor bißchen Ellipse Emission gesamt heraus Immission interessiert korreliert korrigiert Laie nämlich offiziell parallel reell Satellit Standard Stegreif voraus