diff options
Diffstat (limited to 'lx-trainer-vm')
| -rwxr-xr-x | lx-trainer-vm/dd.sh | 18 | ||||
| -rw-r--r-- | lx-trainer-vm/home-overlay/.gitignore | 4 |
2 files changed, 22 insertions, 0 deletions
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 |
