Commits

William Pitcock  committed 48b6f7a

debian: add steps to make the image bootable

  • Participants
  • Parent commits 81365e7

Comments (0)

Files changed (2)

File appliancekit/specs/debian-base.spec

 	{"operation": "setenv", "key": "DEBIAN_FRONTEND", "value": "noninteractive"},
 	{"operation": "runcmd", "chroot": true, "command": ["apt-get", "-y", "--force-yes", "update"]},
 	{"operation": "runcmd", "chroot": true, "command": ["apt-get", "-y", "--force-yes", "install", "openssh-server", "e2fsprogs"]},
+	{% block kernelinst %}
+		{"operation": "runcmd", "chroot": true, "command": ["apt-get", "-y", "--force-yes", "install", "linux-image"]},
+		{"operation": "render_template", "template": "debian/grub-menu.lst.tmpl", "target": "/boot/grub/menu.lst"},
+	{% endblock %}
 {% endblock %}
 {% block packages %}
 	{% for package in packages %}

File appliancekit/specs/debian/grub-menu.lst.tmpl

+# Generated by ApplianceKit.  Do not modify unless you know what you're doing.
+## XXX: STUB LOL
+{% set root=root or "/dev/xvda1" %}
+{% set groot=groot or "(hd0)" %}
+
+timeout		5
+
+title		Debian
+root		{{ groot }}
+kernel		/boot/vmlinuz root={{ root }} modules=ext3 quiet
+initrd		/boot/vmlinuz.gz