Remove any created initramfs except failsafe one
This commit is contained in:
parent
d656ee17e0
commit
64d5dccb6b
@ -24,10 +24,13 @@ chroot $MOUNTDIR rpm -e VirtualBox-vboxguest dkms --noscripts
|
|||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||||
# remove kernel headers installed by dkms
|
# remove kernel headers installed by dkms
|
||||||
chroot $MOUNTDIR smart remove kernel-${K}-headers -y
|
chroot $MOUNTDIR smart remove kernel-${K}-headers -y
|
||||||
# remove unused initramfs generated by kernel
|
done
|
||||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${K}.img*
|
# remove unused initramfs generated by kernel
|
||||||
# remove failsafe image to save space for livecd
|
for f in $MOUNTDIR/boot/initramfs-*.img*; do
|
||||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img*
|
case "$f" in
|
||||||
|
*failsafe*) continue ;;
|
||||||
|
*) rm -f $f ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# install all GConf rules
|
# install all GConf rules
|
||||||
|
@ -17,10 +17,13 @@ chroot $MOUNTDIR rpm -e VirtualBox-vboxguest dkms --noscripts
|
|||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||||
# remove kernel headers installed by dkms
|
# remove kernel headers installed by dkms
|
||||||
chroot $MOUNTDIR smart remove kernel-${K}-headers -y
|
chroot $MOUNTDIR smart remove kernel-${K}-headers -y
|
||||||
# remove unused initramfs generated by kernel
|
done
|
||||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${K}.img*
|
# remove unused initramfs generated by kernel
|
||||||
# remove failsafe image to save space for livecd
|
for f in $MOUNTDIR/boot/initramfs-*.img*; do
|
||||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img*
|
case "$f" in
|
||||||
|
*failsafe*) continue ;;
|
||||||
|
*) rm -f $f ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# remove some documentation to save space on CD
|
# remove some documentation to save space on CD
|
||||||
|
@ -16,10 +16,12 @@ for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
|||||||
# pre-create video drivers for VirtualBox
|
# pre-create video drivers for VirtualBox
|
||||||
chroot $MOUNTDIR dkms install -q -m vboxguest -v ${virtualbox_ver} -k ${KERNEL_MAJVER}$K --force
|
chroot $MOUNTDIR dkms install -q -m vboxguest -v ${virtualbox_ver} -k ${KERNEL_MAJVER}$K --force
|
||||||
chroot $MOUNTDIR dkms install -q -m vboxvideo -v ${virtualbox_ver} -k ${KERNEL_MAJVER}$K --force
|
chroot $MOUNTDIR dkms install -q -m vboxvideo -v ${virtualbox_ver} -k ${KERNEL_MAJVER}$K --force
|
||||||
# remove unused initramfs generated by kernel
|
|
||||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${K}.img*
|
|
||||||
# # remove failsafe image to save space for livecd
|
|
||||||
# rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img*
|
|
||||||
done
|
done
|
||||||
|
# remove unused initramfs generated by kernel
|
||||||
|
for f in $MOUNTDIR/boot/initramfs-*.img*; do
|
||||||
|
case "$f" in
|
||||||
|
*failsafe*) continue ;;
|
||||||
|
*) rm -f $f ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
prelink
|
prelink
|
||||||
|
@ -6,11 +6,12 @@ for f in /usr/share/applications/chromium-devel.desktop; do
|
|||||||
chroot $MOUNTDIR /opt/kde/bin/kickoffcfg --add-favorite $f
|
chroot $MOUNTDIR /opt/kde/bin/kickoffcfg --add-favorite $f
|
||||||
done
|
done
|
||||||
|
|
||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
# remove unused initramfs generated by kernel
|
||||||
# remove unused initramfs generated by kernel
|
for f in $MOUNTDIR/boot/initramfs-*.img*; do
|
||||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${K}.img*
|
case "$f" in
|
||||||
# remove failsafe image to save space for livecd
|
*failsafe*) continue ;;
|
||||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img*
|
*) rm -f $f ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
prelink
|
prelink
|
||||||
|
@ -17,8 +17,6 @@ chroot $MOUNTDIR rpm -e VirtualBox-vboxguest dkms --noscripts
|
|||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||||
# remove kernel headers installed by dkms
|
# remove kernel headers installed by dkms
|
||||||
chroot $MOUNTDIR smart remove kernel-${K}-headers -y
|
chroot $MOUNTDIR smart remove kernel-${K}-headers -y
|
||||||
# remove failsafe image to save space for livecd
|
|
||||||
#rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img*
|
|
||||||
done
|
done
|
||||||
# remove unused initramfs generated by kernel
|
# remove unused initramfs generated by kernel
|
||||||
for f in $MOUNTDIR/boot/initramfs-*.img* do
|
for f in $MOUNTDIR/boot/initramfs-*.img* do
|
||||||
|
Loading…
Reference in New Issue
Block a user