问题:
通过源码编译方式升级/修改Linux内核时,由于/boot目录空闲有限,生成rescue initramfs文件时,由于空间不足,生成img文件失败。
#df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 51475068 17528648 31308596 36% /
devtmpfs 197963156 0 197963156 0% /dev
tmpfs 197980432 176 197980256 1% /dev/shm
tmpfs 197980432 9400 197971032 1% /run
tmpfs 197980432 0 197980432 0% /sys/fs/cgroup
/dev/sda1 248783 244685 0 100% /boot
tmpfs 39596088 0 39596088 0% /run/user/0
/dev/sdi 781412184 18063332 761735804 3% /zlib
[root@root /zlib/linux-3.10.0-327.x86_64]
#make install
sh /zlib/linux-3.10.0-327.x86_64/arch/x86/boot/install.sh 3.10.0-327.x86_64.debug arch/x86/boot/bzImage \
System.map “/boot”
pigz: abort: write error on <stdout> (No space left on device)
dracut: creation of /boot/initramfs-3.10.0-327.x86_64.debug.img failed
Broadcast message from systemd-journald@root (Thu 2017-04-06 15:13:07 CST):
dracut[62463]: dracut: creation of /boot/initramfs-3.10.0-327.x86_64.debug.img failed
mkinitrd failed
解决办法:
将/usr/lib/dracut/dracut.conf.d/02-rescue.conf文件中的
dracut_rescue_image=”yes“
修改为:
dracut_rescue_image=”no“
Leave a Reply