Skip to content

Commit

Permalink
Add empty dir for mounting USB device
Browse files Browse the repository at this point in the history
The directory can avoid user mount over issue.
It would be more clear when user want to mount USB.

Signed-off-by: Phil Huang <phil_huang@edge-core.com>
  • Loading branch information
Phil Huang committed Mar 20, 2018
1 parent 7dec541 commit 5774532
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rootconf/grub-arch/sysroot-lib-onie/init-arch
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ while [ $cnt -lt $delay ] ; do
sleep 0.1
done

# Prepare empty directory for mount USB device
mkdir -p $usb_mnt

# Handle mounting the ONIE-BOOT partition
init_onie_boot() {
[ -n "$device" ] || {
Expand Down
1 change: 1 addition & 0 deletions rootconf/grub-arch/sysroot-lib-onie/onie-blkdev-common
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: GPL-2.0

usb_mnt="/mnt/usb"
onie_boot_mnt="/mnt/onie-boot"
uefi_esp_mnt="/boot/efi"

Expand Down

0 comments on commit 5774532

Please sign in to comment.