History

mklive: only remove unnecessary pkgs if don't have revdeps.

... otherwise switch them to automatic installation mode.

Juan RP committed 11 years ago

Commit 7f49ee51 parent 4ab914c1 file · +6 −1Browse files

Unified · Split

mklive.sh.in+6−1
@@ -139,7 +139,12 @@ generate_initramfs() { · 138 unmodified lines
139 139
140cleanup_rootfs() {140cleanup_rootfs() {
141 for f in ${INITRAMFS_PKGS}; do141 for f in ${INITRAMFS_PKGS}; do
142 xbps-remove -r $ROOTFS -Ry ${f} || die "Failed to remove $f from rootfs"142 revdeps=$(xbps-query -r $ROOTFS -X $f)
143 if [ -n "$revdeps" ]; then
144 xbps-pkgdb -r $ROOTFS -m auto $f
145 else
146 xbps-remove -r $ROOTFS -Ry ${f} >/dev/null 2>&1
147 fi
143 done148 done
144 rm -r $ROOTFS/usr/lib/dracut/modules.d/01vmklive149 rm -r $ROOTFS/usr/lib/dracut/modules.d/01vmklive
145}150}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t