ubuntu의 ISO를 디스크에 저장해서 grub로 부팅해보면 ISO 파일이 위치한 디스크를 재구성이 불가능하게
비활성화가 된다.

이런 경우 설치 메뉴에서 console로 전환하여 아래와 같이 명령어를 실행해서 /iosdevice를 umount하면 ISO
파일이 위치한 디스크 재구성이 가능하다.

# umount -f -l /isodevice

 

만약 grub -> 디스크 -> ISO-> cloud-init로 시스템을 구성한다면 아래와 같이 "early-commands"를 통해서
umount를 구현할 수 있다.

  early-commands:
    - umount -f -l /isodevice
  late-commands:
    - /bin/sh /cdrom/custom/run-install-initial-packages-ubuntu.sh
    - curtin in-target --target=/target -- /usr/sbin/update-grub