/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/A-ganeti-fix-root.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /recepies/ganeti/migrate-lxc/A-ganeti-fix-root.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 312 - (hide annotations)
Wed Jan 29 00:13:48 2014 UTC (10 years, 3 months ago) by dpavlin
File MIME type: application/x-sh
File size: 467 byte(s)
tweaks after migration of narada

1 dpavlin 306 #!/bin/sh -x
2    
3     . ./0-host.sh
4     . ./0-ganeti.sh
5    
6 dpavlin 312 ssh_master ls -d /tmp/$host/rootfs/boot > $host/rootfs_boot
7     if [ -s $host/rootfs_boot ] ; then
8     ssh_master mv /tmp/$host/rootfs/* /tmp/$host/
9     ssh_master mv /tmp/$host/rootfs/.?* /tmp/$host/
10     ssh_master rmdir /tmp/$host/rootfs
11     fi
12 dpavlin 306
13     ssh_master mkdir -p /tmp/$host/lib/modules
14     ssh_master cp -ra /lib/modules/3.2.0-4-amd64 /tmp/$host/lib/modules
15    
16     ssh_master chroot /tmp/$host apt-get install --reinstall -y initscripts acpid
17    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26