diff options
| author | John Ogness <john.ogness@linutronix.de> | 2017-09-18 16:31:17 +0200 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2017-09-18 16:31:17 +0200 |
| commit | 5c876f80b9a3328b33520eb51e044cbec2ebc208 (patch) | |
| tree | 56b977f8c83b84c585ee31ac528f16640062a68f /lx-trainer-vm/extra/update-home.sh | |
| parent | 0151fc2ba3bbe33484599df6ef3c49c2b152ffad (diff) | |
update scripts and README
- removed extra dd-variation scripts
- updated script for general usage (src/dest as arguments)
- adjusted script to support modifying new image
- moves /home/* from part1 to part2
- adds /home entry to /etc/fstab
- moved manut's update-home.sh to "extra" directory
(may still be in use? until a general replacement exists)
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'lx-trainer-vm/extra/update-home.sh')
| -rwxr-xr-x | lx-trainer-vm/extra/update-home.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lx-trainer-vm/extra/update-home.sh b/lx-trainer-vm/extra/update-home.sh new file mode 100755 index 0000000..2bdbf37 --- /dev/null +++ b/lx-trainer-vm/extra/update-home.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +mkfs.ext4 -F -L lxhome /dev/sde2 +mkfs.ext4 -F -L lxhome /dev/sdc2 +mkfs.ext4 -F -L lxhome /dev/sdd2 + +mount /dev/sde2 /mnt +mkdir /mnt/devel +chown 1000:1000 /mnt/devel +cp -a home-overlay/* /mnt/ +umount /mnt + +mount /dev/sdc2 /mnt +mkdir /mnt/devel +chown 1000:1000 /mnt/devel +cp -a home-overlay/* /mnt/ +umount /mnt + +mount /dev/sdd2 /mnt +mkdir /mnt/devel +chown 1000:1000 /mnt/devel +cp -a home-overlay/* /mnt/ +umount /mnt |
