From c8d041fab586ddea59f68a72e6f36272ef0e2750 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 29 Aug 2014 23:13:04 +0200 Subject: lx-trainer-vm auto create home directory Signed-off-by: Manuel Traut --- lx-trainer-vm/dd.sh | 18 ++++++++++++++++++ lx-trainer-vm/home-overlay/.gitignore | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 lx-trainer-vm/home-overlay/.gitignore (limited to 'lx-trainer-vm') diff --git a/lx-trainer-vm/dd.sh b/lx-trainer-vm/dd.sh index 9e57c42..1e1fd81 100755 --- a/lx-trainer-vm/dd.sh +++ b/lx-trainer-vm/dd.sh @@ -13,3 +13,21 @@ echo -e "n\np\n\n\n\nw" | tee \ mkfs.ext4 -L home /dev/sdb2 mkfs.ext4 -L home /dev/sdc2 mkfs.ext4 -L home /dev/sdd2 + +mount /dev/sdb2 /mnt +mkdir /mnt/home/devel +chmod 1000:1000 /mnt/devel +cp -a home-overlay/* /mnt/ +umount /mnt + +mount /dev/sdc2 /mnt +mkdir /mnt/home/devel +chmod 1000:1000 /mnt/devel +cp -a home-overlay/* /mnt/ +umount /mnt + +mount /dev/sdd2 /mnt +mkdir /mnt/home/devel +chmod 1000:1000 /mnt/devel +cp -a home-overlay/* /mnt/ +umount /mnt diff --git a/lx-trainer-vm/home-overlay/.gitignore b/lx-trainer-vm/home-overlay/.gitignore new file mode 100644 index 0000000..5e7d273 --- /dev/null +++ b/lx-trainer-vm/home-overlay/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore -- cgit v1.2.3