mirror of
https://github.com/kiddin9/openwrt-packages.git
synced 2025-01-09 09:47:28 +08:00
🍕 Sync 2024-09-16 06:06:58
This commit is contained in:
parent
e5ad2a9b54
commit
ccf888a731
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dockerd
|
||||
PKG_VERSION:=27.1.2
|
||||
PKG_RELEASE:=41
|
||||
PKG_RELEASE:=42
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
|
@ -15,7 +15,7 @@ ROOT_DISK_NAME="$(echo $ROOT_DISK | cut -d / -f 3)"
|
||||
LAST_PART_NAME="$(lsblk -nlo NAME | grep $ROOT_DISK_NAME | tail -n 1)"
|
||||
# 格式化新分区
|
||||
mkfs.ext4 -F -L "docker" /dev/${LAST_PART_NAME}
|
||||
umount -f /dev/${LAST_PART_NAME}
|
||||
pgrep -x /usr/bin/dockerd > /dev/null && /etc/init.d/dockerd stop
|
||||
mkdir -p /opt/docker
|
||||
eval $(block info /dev/${LAST_PART_NAME} | grep -o -e 'UUID="\S*"')
|
||||
[ ! -f /etc/config/fstab ] && ( block detect > /etc/config/fstab )
|
||||
@ -23,6 +23,7 @@ uci set fstab.mountdocker="mount"
|
||||
uci set fstab.mountdocker.uuid="${UUID}"
|
||||
uci set fstab.mountdocker.target="/opt/docker"
|
||||
uci commit fstab
|
||||
umount -f /dev/${LAST_PART_NAME}
|
||||
/sbin/block mount
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user