--- ChrootCompile/bin/ChrootCompile	2007-03-29 09:50:56.000000000 +0200
+++ ChrootCompile/bin/mybin/ChrootCompile	2007-05-05 14:21:40.000000000 +0200
@@ -327,6 +327,10 @@
    if [ ! -z "$prefix" ]
    then
        # this should point to the temporary environment set by chrootcompile
+
+	   # Aitor -- Needed to ensure that works with not std locations
+	   mkdir -p ${rootdir}/${prefix%/*}a
+
        ln -nfs .. $rootdir/$prefix
 
        # these are needed by Compile and need to point to chrootcompile's rootfs;
@@ -591,11 +595,16 @@
 EOF
 
 sudo_rm_if_e $root/$goboPrograms/Sudo/Settings/sudoers
-sudo chmod 777 $root/$goboPrograms/Sudo/Settings
+
+# Aitor 
+# s/sudo/$sudo/ -- Fails to do sudo withouth the '$'
+$sudo chmod 777 $root/$goboPrograms/Sudo/Settings
 cat <<EOF > $root/$goboPrograms/Sudo/Settings/sudoers
 root ALL=(ALL) NOPASSWD: ALL
 EOF
-sudo chmod 755 $root/$goboPrograms/Sudo/Settings
+# Aitor 
+# s/sudo/$sudo/ -- Fails to do sudo withouth the '$'
+$sudo chmod 755 $root/$goboPrograms/Sudo/Settings
 
 $sudo chmod 440 $root/$goboPrograms/Sudo/Settings/sudoers
 $sudo chown 0:0 $root/$goboPrograms/Sudo/Settings/sudoers
