Skip to content

Commit 191940a

Browse files
committed
Update init.fstab.sh to use mknod instead of ln -s for device links
Signed-off-by: shadichy <[email protected]>
1 parent 90d4589 commit 191940a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init.fstab.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
#
66

77
function map_device_link() {
8-
ln -s /dev/block/"${1#'#>'}" /dev/block/by-name/"$2"
8+
# shellcheck disable=2012,2046
9+
mknod /dev/block/by-name/"${1#'#>'}" b "$2" "$3"
910
}
1011

1112
function init_loop_links() {

0 commit comments

Comments
 (0)