switch-themes를 이용하여 부트 스플래시를 변경하고자 하는 경우 다음과 같은 오류가 발생될 때가 있습니다.
sh: -c: line 0: syntax error near unexpected token `hd0,6'
sh: -c: line 0: `/bin/zcat (hd0,6)/boot/initrd.img 2> /dev/null | /bin/cpio -t &> /dev/null'
can't open (hd0,6)/boot/initrd.img: 그런 파일이나 디렉토리가 없습니다
/usr/share/bootsplash/scripts/make-boot-splash: line 74: (hd0,6)/boot/initrd.img: 그런 파일이나 디렉토리가 없습니다
상기 오류는 /boot/grub/menu.lst 파일에서 오류가 나오는 디바이스에 대한 부트 엔트리가 설정되어 있을 경우에 발생되므로,
menu.lst 파일에서 해당 부트 엔트리에 대해서 주석 처리한 후 switch-themes 명령을 실행하면 되고, 오류없이 /boot/initrd.img
파일이 생성되면 주석처리한 부분을 제거한 후 부팅을 하면 됩니다.
sh: -c: line 0: syntax error near unexpected token `hd0,6'
sh: -c: line 0: `/bin/zcat (hd0,6)/boot/initrd.img 2> /dev/null | /bin/cpio -t &> /dev/null'
can't open (hd0,6)/boot/initrd.img: 그런 파일이나 디렉토리가 없습니다
/usr/share/bootsplash/scripts/make-boot-splash: line 74: (hd0,6)/boot/initrd.img: 그런 파일이나 디렉토리가 없습니다
상기 오류는 /boot/grub/menu.lst 파일에서 오류가 나오는 디바이스에 대한 부트 엔트리가 설정되어 있을 경우에 발생되므로,
menu.lst 파일에서 해당 부트 엔트리에 대해서 주석 처리한 후 switch-themes 명령을 실행하면 되고, 오류없이 /boot/initrd.img
파일이 생성되면 주석처리한 부분을 제거한 후 부팅을 하면 됩니다.