Reply to post: Re: After the shitstorm of upstart, this is a welcome change

Grab your pitchforks: Ubuntu to switch to systemd on Monday

Anonymous Coward
Anonymous Coward

Re: After the shitstorm of upstart, this is a welcome change

Might I recommend a recipe I'm using, it's a headless server only thing, but it works for me.

It results in a bootable image that one could run with qemu/ turn into an iso etc.

This means, I setup my server how I like it once, and I just turn the handle when I want another one.

It sounds like a fair bit of work and it is a bit of a faff but it boils down to write long shell script, once

It's not clever, it just copy's some files into place and pops out an image, but it works and it's easy to keep working for normal linuxy folk.

1) Take a debootstrap into a directory currently using 12.04LTS but any version will do.

2) chroot into the directory and start sshd

3) copy over some template files or for extra credit, use ansible to push a basic configuration.

4) create an file to use a loopback, the size of the chroot on disk + some extra (i use 200MB)

5) format the file to ext2, make it bootable.

6) mount the file to a loopback and rsync all the data across

7) install grub + a kernel

8) unmount the image.

9) quick check with qemu to make sure it's all good

10) dd the image onto a usb stick

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon