OSDN Git Service
(root)
/
lxcf
/
lxcf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e16583
)
create /home with fedora
author
niwa-hideyuki
<niwa.hideyuki@jp.fujitsu.com>
Mon, 22 Sep 2014 07:23:23 +0000
(16:23 +0900)
committer
niwa-hideyuki
<niwa.hideyuki@jp.fujitsu.com>
Mon, 22 Sep 2014 07:23:23 +0000
(16:23 +0900)
lxcf/lib/lxcf-createfile
patch
|
blob
|
history
diff --git
a/lxcf/lib/lxcf-createfile
b/lxcf/lib/lxcf-createfile
index
5065f2c
..
7649ada
100755
(executable)
--- a/
lxcf/lib/lxcf-createfile
+++ b/
lxcf/lib/lxcf-createfile
@@
-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..."