diff --git a/operation/copy_kernels.sh b/operation/copy_kernels.sh index 13ef67a..9b939d5 100755 --- a/operation/copy_kernels.sh +++ b/operation/copy_kernels.sh @@ -56,6 +56,11 @@ main () err "$INITRD/initrd.gz doesn't exist " exit 1 fi + + info "copy $FIRMWARE to $TARGET/lib/" + if [ -d $FIRMWARE ];then + cp -r "$FIRMWARE" $TARGET/lib/ + fi info "runing makeinitrd" if [ -e ./makeinitrd ];then @@ -73,6 +78,11 @@ main () err "$KERNELS directory doesn't exist " exit 1 fi + + info "copy $FIRMWARE to $TARGET/lib/" + if [ -d $FIRMWARE ];then + cp -r "$FIRMWARE" $TARGET/lib/ + fi ;; *) err "architecture is not allowing" @@ -83,6 +93,7 @@ main () KERNELS="/Rocky/kernels" MODULES="/Rocky/modules" +FIRMWARE="/Rocky/firmware" INITRD="/Rocky/initrd" main "$@"