integrate-distro.sh: Ongoing improvements

- Script stops during execution of reset_host_files(), fix by
    enclosing code blocks in "set +e"
  - Fix syntax error in link of /boot/initrd-local

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-03-28 13:11:30 +00:00
commit ea7732b0a9

View file

@ -159,7 +159,6 @@ case $suse_version in
aufs-util
db48-utils
"
special_pkgs="
jux-run
jux-client-run
@ -171,6 +170,7 @@ case $suse_version in
ftp-server-run
bprof-run
"
# currently unused variable
devel_pkgs="
ant
@ -849,6 +849,7 @@ use_host_files()
reset_host_files()
{
set +e
local f e h p
for f in $host_files; do
p=$root/$f.diff
@ -870,6 +871,8 @@ reset_host_files()
rm -f $p
done
host_files=""
set -e
return 0
}
setup_boot_loader_local()
@ -905,7 +908,7 @@ EOT
| -M /boot/System.map-$kernel_version \\
| -m "$initrd_modules" \\
| -d $install_dev_root
|ln -sf initrd-local-$kernel_version /boot/initrd-local)
|ln -sf initrd-local-$kernel_version /boot/initrd-local
|chmod 644 /boot/initrd-local-$kernel_version
EOT
chmod 755 $root$mkinitrd_sh