OSDN Git Service

create /home with fedora
authorniwa-hideyuki <niwa.hideyuki@jp.fujitsu.com>
Mon, 22 Sep 2014 07:23:23 +0000 (16:23 +0900)
committerniwa-hideyuki <niwa.hideyuki@jp.fujitsu.com>
Mon, 22 Sep 2014 07:23:23 +0000 (16:23 +0900)
lxcf/lib/lxcf-createfile

index 5065f2c..7649ada 100755 (executable)
@@ -124,9 +124,8 @@ if [ -f /root/.ssh/lxcf_rsa.pub ]; then
   chmod 600 $rootfs/root/.ssh/authorized_keys
 fi
 
-if [ x$DISTRO == x"u" ]; then
-  for i in `lsdir /home`
-  do
+for i in `lsdir /home`
+do
     mkdir -p $rootfs/home/$i
     if [ -f /home/$i/.bashrc ]; then
       cp -f /home/$i/.bashrc $rootfs/home/$i/.
@@ -135,8 +134,7 @@ if [ x$DISTRO == x"u" ]; then
       cp -f /home/$i/.bash_logout $rootfs/home/$i/.
     fi
     chown -R $i.$i $rootfs/home/$i
-  done
-fi
+done
 
 # create /boot
 echo "creating $rootfs/boot..."