https://bugzilla.novell.com/show_bug.cgi?id=346633
User michael.loder@christiedigital.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346633#c3
Mike Loder changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|michael.loder@christiedigital.com |
--- Comment #3 from Mike Loder 2007-12-07 15:02:26 MST ---
Hi Marcus,
Thanks for the fast response. I found an issue detecting to presence of files
in the home directory. The line
if [ -d /mnt/home/* ];then
Does not seem to be a valid bash condition statement. The -d only deal with a
single directory name and not any "*" directory name. I solved this problem
with the following replacement. This replacement works for all files in the
home directory and not just directories.
if [ `ls /mnt/home/ | wc -l` != 0]; then
With this line replacement in your patch everything works well. In all I am not
sure this check is needed. Because the home path is always overridden, the
script might as well just always move the data regardless if anything exists or
not.
if [ -z "$UNIONFS_CONFIG" ]; then
echo "$deviceRoot / $FSTYPE defaults 0 0" >> /config/etc/fstab
Echo "Moving home/ data to newly created home partition $deviceHome"
mount $deviceHome /mnt/mnt && mv /mnt/home/* /mnt/mnt
umount /mnt/mnt
Echo "Activate home partition $deviceHome in fstab"
echo "$deviceHome /home ext3 defaults 0 0" >> /config/etc/fstab
else
mkdir -p /config/kiwiboot
echo "$deviceBoot /kiwiboot ext2 defaults 0 0" >> /config/etc/fstab
fi
Thanks for the patch update.
Mike Loder
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.