psplash进度条显示旋转
找到psplash-start.service
系统启动参数fbcon=rotate:1参数是顺时针旋转 90。
参数含义:
0 - normal orientation (0 degree)
1 - clockwise orientation (90 degrees)
2 - upside down orientation (180 degrees)
3 - counterclockwise orientation (270 degrees)
psplash似乎是逆时针旋转
所以稍微转化一下$((PSPLASH_ROTATION * 270 % 360))
修改默认启动脚本为:
Description=Starts Psplash Boot screen
DefaultDependencies=no
RequiresMountsFor=/run[Service]ExecStartPre=/bin/sh -c 'ROT=$(grep -o "fbcon=rotate:[0-9]" /proc/cmdline | cut
-d: -f2); \[ -n "$ROT" ] && echo "PSPLASH_ROTATION=$ROT" > /run/psplash.conf'
ExecStart=/bin/sh -c ' \if [ -f /run/psplash.conf ]; then \. /run/psplash.conf; \[ -n "$PSPLASH_ROTATION" ] && ROTATE_OPT="--angle $((PSPLASH_ROTATION * 270 % 360))"; \fi; \/usr/bin/psplash -n $ROTATE_OPT'[Install]
WantedBy=sysinit.target
就可以实现旋转了