[build]: ensure proc is mounted for raw image build
Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
parent
38a4fddaa9
commit
40d2c79c84
@ -67,8 +67,11 @@ elif [ "$IMAGE_TYPE" = "raw" ]; then
|
||||
echo "Creating SONiC raw partition : $OUTPUT_RAW_IMAGE of size $RAW_IMAGE_DISK_SIZE MB"
|
||||
fallocate -l "$RAW_IMAGE_DISK_SIZE"M $OUTPUT_RAW_IMAGE
|
||||
|
||||
# ensure proc is mounted
|
||||
sudo mount proc /proc -t proc || true
|
||||
|
||||
## Generate a partition dump that can be used to 'dd' in-lieu of using the onie-nos-installer
|
||||
## Run the installer
|
||||
## Run the installer
|
||||
## The 'build' install mode of the installer is used to generate this dump.
|
||||
sudo chmod a+x $OUTPUT_ONIE_IMAGE
|
||||
sudo ./$OUTPUT_ONIE_IMAGE
|
||||
|
Loading…
Reference in New Issue
Block a user