[PATCH] 080-loop: fix overlooked unmigrated directory

Michael Shigorin mike на altlinux.org
Вт Дек 4 13:27:43 MSK 2012


This would result in

  /init: 7: /init: /lib/success/*: not found

after a58ff5edef55e3b4d6cd7e81fae853cdd8a57975 move;
the difference between the older and new initrd is like:

+/lib/initrd/success/mountfs
+/lib/initrd/success/rootfs
-/lib/success/rootfs

Thanks evg@ for bringing this up again.
---
 data/lib/initrd/modules/080-loop | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/lib/initrd/modules/080-loop b/data/lib/initrd/modules/080-loop
index 02a310e..f9d62e9 100755
--- a/data/lib/initrd/modules/080-loop
+++ b/data/lib/initrd/modules/080-loop
@@ -3,7 +3,7 @@
 msg='Processing kernel events...'
 check() {
 	local f
-	for f in "/lib/$1"/*; do
+	for f in "/lib/initrd/$1"/*; do
 		"$f" ${2-} || return 1
 		[ -n "${2-}" ] || verbose "Check '${f##*/}' success!"
 	done
-- 
1.7.12.4


--opJtzjQTFsWo+cga--


Подробная информация о списке рассылки Devel