For /var automounting to work, the PARTUUID must match the SHA256 HMAC hash of the partition type UUID (4d21b016-b534-45c2-a9fb-5c16e091fd2d) keyed by the machine ID. The required PARTUUID can be obtained using:
$ systemd-id128 -u --app-specific=4d21b016-b534-45c2-a9fb-5c16e091fd2d machine-id
Note: systemd-id128(1) reads the machine ID from /etc/machine-id, this makes it impossible to know the needed PARTUUID before the system is installed.
========================
从archlinux上看的,想把/var设成独立分区,自动挂载,但是这段话没看明白,有人能说一下吗?
离线
为了使/var能自动装载, 采用的PARTUUID必须匹配SHA256 HMAC乱码 -- 以machie ID为密钥加密的/var分区的UUID
这个PARTUUID可以用下一行的命令获取:
$ systemd-id128 -u --app-specific=4d21b016-b534-45c2-a9fb-5c16e091fd2d machine-id
注:这个命令中的machine ID是从/etc/machine-id文件中读取的,因此不可能在系统安装之前得到这个PARTUUID。
4d21b016-b534-45c2-a9fb-5c16e091fd2d要替换成/var分区的UUID
离线
这没什么好说的啊,就是字面意思。如果嫌解释得不够详细的话,看 https://systemd.io/DISCOVERABLE_PARTITIONS/ 。(如果你是英语不好的话,请自行借助工具学习。)
离线
按照uefi规范,我的磁盘分区/,/boot,/home,swap,都可以自动挂载,不用往fstab写东西了,但是/usr,/var都还不行,要怎么搞呢?
离线
XFS:attr2 mount option is deprecated。这个是什么意思?
离线
把 attr2 选项去掉就行了。
离线