pentoo / pentoo-historical

read-only historical backup of pentoo from googlecode
https://code.google.com/p/pentoo/
2 stars 1 forks source link

pentoo-system, 00-linux_link.start verify if sources installed #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The script checks if a directory exist only.

It breaks the system if it does exist (with some leftovers) but sources has 
been --depclean'ed after an upgrade.

The script should verify the existence of the target directory *and* 
corresponding pentoo-sources package.

Original issue reported on code.google.com by blshkv on 28 Aug 2013 at 12:53

GoogleCodeExporter commented 9 years ago
Index: files/00-linux_link.start
===================================================================
--- files/00-linux_link.start   (revision 5137)
+++ files/00-linux_link.start   (working copy)
@@ -2,7 +2,7 @@

 ##adjust /usr/src/linux link if we are pretty sure we won't screw up the system
 KV=$(uname -r)
-if [ -d /usr/src/linux-${KV} ]
+if [ -d /usr/src/linux-${KV} ] && $(qfile /usr/src/linux-${KV} 2>&1 > 
/dev/null)
 then
    if [ -L /usr/src/linux ]
    then

Original comment by sidhayn on 9 Oct 2013 at 1:34