
나는 그것을 고쳤다. 설치 옵션이 외부 로그가 /etc/fstab
있는 logdev=
xfs 옵션 이어서 설치되지 않았습니다 . 이를 사용하여 logdev=/dev/disk/by-uuid/<uuid of partition>
실제 장치 노드가 필요함을 지정합니다./dev/sda2
수정된 스크립트는 아래와 같습니다.
#Mount Debian mirror
if
(( $(mount | grep -c mirror) == 0 )) && [ "$1" == "-m" ];
then
/bin/mount /home/tomas/mirror && echo "mirror has been mounted."
exit 0
elif
[ "$1" == "-m" ];
then
echo "Mirror is already mounted."
exit 0
fi
if
(( $(mount | grep -c mirror) == 1 )) && [ "$1" == "-u" ];
then
sudo /bin/umount /home/tomas/mirror && echo "Umounting mirror."
exit 0
elif
[ "$1" == "-u" ]
then
echo "Mirror is not mounted."
else
echo "Specify -m for mount or -u for umount."
fi
exit 0