Idealisan

坚果Pro上使用PostmarketOS作为homelab踩坑

docker的containerd服务的systemd文件路径错误,去掉路径中的local/才是正确的路径。修改完

    sudo nano /usr/lib/systemd/system/containerd.service
    sudo systemctl daemon-reload
    sudo systemctl restart containerd

    [Unit]
    Description=containerd container runtime
    Documentation=https://containerd.io
    After=network.target dbus.service
    
    [Service]
    ExecStartPre=-/sbin/modprobe overlay
    ExecStart=/usr/local/bin/containerd
    
    Type=notify
    Delegate=yes
    KillMode=process
    Restart=always
    RestartSec=5

    screen和tmux不能用

    需要修改systemd的logind.conf,明确指定KillUserProcesses=no才行

    u2pro:~$ cat /etc/systemd/logind.conf 
    # This file is provided by postmarketos-base. See logind.conf(5) for details.
    
    [Login]
    #NAutoVTs=6
    #ReserveVT=6
    KillUserProcesses=no
    #KillOnlyUsers=
    #KillExcludeUsers=root
    #InhibitDelayMaxSec=5
    #UserStopDelaySec=10
    HandlePowerKey=ignore
    #HandlePowerKeyLongPress=ignore
    #HandleRebootKey=reboot
    #HandleRebootKeyLongPress=poweroff
    #HandleSuspendKey=suspend
    #HandleSuspendKeyLongPress=hibernate
    #HandleHibernateKey=hibernate
    #HandleHibernateKeyLongPress=ignore
    #HandleLidSwitch=suspend
    #HandleLidSwitchExternalPower=suspend
    #HandleLidSwitchDocked=ignore
    #PowerKeyIgnoreInhibited=no
    #SuspendKeyIgnoreInhibited=no
    #HibernateKeyIgnoreInhibited=no
    #LidSwitchIgnoreInhibited=yes
    #RebootKeyIgnoreInhibited=no
    #HoldoffTimeoutSec=30s
    #IdleAction=ignore
    #IdleActionSec=30min
    #RuntimeDirectorySize=10%
    #RuntimeDirectoryInodesMax=
    #RemoveIPC=yes
    #InhibitorsMax=8192
    #SessionsMax=8192
    #StopIdleSessionSec=infinity
    u2pro:~$ 
    分类

    发表评论

    您的电子邮箱地址不会被公开。 必填项已用*标注