![initramfs 루프 중에 squashfs를 마운트할 수 없습니다.](https://linux55.com/image/145921/initramfs%20%EB%A3%A8%ED%94%84%20%EC%A4%91%EC%97%90%20squashfs%EB%A5%BC%20%EB%A7%88%EC%9A%B4%ED%8A%B8%ED%95%A0%20%EC%88%98%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
initramfs 중에 squashfs 파일을 마운트하려고 합니다. 루프 및 squashfs 모듈을 포함했습니다.
현재 사용 중이 mount /foo.squashfs /mountpoint
거나 mount -t squashfs -o loop /foo.squashfs /mountpoint
결과가 다음과 같습니다.Error: block device required.
그러나 루프 장치를 먼저 수동으로 설정한
losetup /dev/loop0 /foo.squashfs
후 설치에 mount /dev/loop0 /mountpoint
성공했습니다.
커널 모듈이 누락된 것 같지만 확실하지 않습니다.
답변1
그 이유는 결국 내가 initramfs를 구축한 환경 때문이었습니다. 비지박스가 설치되지 않았습니다. update-initramfs는 기본적으로 klibc를 사용하는데, 여기에는 자동 루프 마운트를 포함하여 많은 기능이 없습니다.