User Tools

Site Tools


dell_xps_15_9530

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dell_xps_15_9530 [2020/03/21 14:00]
ben
dell_xps_15_9530 [2021/08/27 07:40] (current)
ben
Line 22: Line 22:
 KDE defaults to letting the multimedia volume keys (Fn+F1/F2/F3) control the HDMI card by default. Switch this to the analog card by opening KMix and setting ''Settings->Select Master Channel...->Built-in Audio Analog Stereo''. KDE defaults to letting the multimedia volume keys (Fn+F1/F2/F3) control the HDMI card by default. Switch this to the analog card by opening KMix and setting ''Settings->Select Master Channel...->Built-in Audio Analog Stereo''.
  
 +If there's no sound when logging into plasma (the volume icon has a red cross through it, and the kde settings shows no devices), make sure pulseaudio user daemon is running, and if not start it one-time with ''pulseaudio -D'',
 ==== Graphics ==== ==== Graphics ====
  
Line 138: Line 139:
   * Extend the zfs partition to fill the remaining space   * Extend the zfs partition to fill the remaining space
   * Reboot and pray   * Reboot and pray
 +
 +Kernel package installations run ''sabayon-dract --rebuild x.y'', which invokes dracut with a bunch of module omissions including all the systemd ones needed for ZFS to work. Therefore whenever upgrading the kernel, be sure to run ''dracut -f /boot/initramfs-genkernel-x86_64-$(uname -r) $(uname -r)''.
 +
 +Grub 2.02-r3 ships a version of ''grub2-probe'' which can't handle ZFS properly. This means the generated grub config file will contain ''root=ZFS=/root'' instead of ''root=ZFS=rpool/root'' which breaks root filesystem mounting. After installing grub or any kernel package, fix grub,cfg before rebooting.
 +
 +
 +====== Troubleshooting ======
 +
 +===== Failure to boot from ZFS root =====
 +
 +Errors on startup about system not having been booted with systemd. This is a problem with the dracut initrd.
 +
 +Manual boot:
 +  * Edit grub kernel commandline to add ''rd.break=pre-mount'' and remove ''quiet splash''
 +  * At the prompt, run: <code bash>
 +zpool import rpool
 +zfs load-key rpool/root
 +# Enter encryption passphrase
 +mount -t zfs -o zfsutil rpool/root /sysroot
 +mount -t zfs -o zfsutil rpool/root/home /sysroot/home
 +mount -t zfs -o zfsutil rpool/root/var /sysroot/var
 +mount -t zfs -o zfsutil rpool/root/docker /sysroot/var/lib/docker
 +exit
 +</code>
 +  * After boot, regenerate the initrd <code bash>
 +dracut -f /boot/initramfs-genkernel-5.4.0-sabayon 5.4.0-sabayon
 +</code>
 +
 +Known issues:
 +  * Infinite loop of something complaining about system not having been booted with systemd, dbus error: Initramfs was built without systemd support, and needs rebuilding
 +  * Error that ''\'rpool/root\''' contains invalid characters and is not a valid filesystem name: ''/usr/lib/dracut/modules.d/90zfs/mount-zfs.sh'' contains errant single quotes, which need to be removed. Rebuild the initrd afterwards: <code bash>
 +# This:
 +                                ask_for_password \
 +                                        --tries 5 \
 +                                        --prompt "Encrypted ZFS password for ${ENCRYPTIONROOT}: " \
 +                                        --cmd "zfs load-key '${ENCRYPTIONROOT}'"
 +# Should be:
 +                                ask_for_password \
 +                                        --tries 5 \
 +                                        --prompt "Encrypted ZFS password for ${ENCRYPTIONROOT}: " \
 +                                        --cmd "zfs load-key ${ENCRYPTIONROOT}"
 +</code>
 +
 +===== NetworkManager not authorized to control networking =====
 +
 +  * Ensure interactive user is a member of the ''network'' group (logout and in again)
 +  * Ensure polkit permits netdev group to control networkmanager (changes take immediate effect): <code javascript /etc/polkit-1/rules.d/90-network.rules>
 +polkit.addRule(function(action, subject) {
 +    if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) {
 +        return polkit.Result.YES;
 +    }
 +});
 +</code>
 +
 +
  
dell_xps_15_9530.1584799247.txt.gz · Last modified: 2020/03/21 14:00 by ben