25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
384 B

  1. #!/bin/bash
  2. set -e
  3. INPUT_DIR="$1"
  4. IMAGE_NAME="$(basename $INPUT_DIR)"
  5. GRUB_DIR="$TARGET$BUILD/grub"
  6. printf "Copying base rootfs... "
  7. rm -fr $GRUB_DIR
  8. cp -rp $INPUT_DIR/. $GRUB_DIR/
  9. printf "(OK)\n"
  10. echo "Run GRUB installation tasks..."
  11. pushd $TARGET/ansible > /dev/null
  12. export ANSIBLE_ROOTFS_DIR=$GRUB_DIR
  13. ansible-playbook -v 03_grub.yaml
  14. echo "Run GRUB installation tasks... (OK)"