The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Sysadmin

From Mer Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: = Preparing an openSuse chroot = Prepare an openSUSE minimal image. This is done on a suitable opensuse machine (eg phost14) and then rsync'ed to zathras /data/11.4 zypper in kiwi-templ...)
 
Line 8: Line 8:
 
  mkdir -p ${ROOTFS}
 
  mkdir -p ${ROOTFS}
 
  rm -rf ${ROOTFS}
 
  rm -rf ${ROOTFS}
  PKGS="emacs-nox iputils kernel-xen less puppet rsync sudo terminfo wget"
+
  PKGS="emacs-nox iputils kernel less puppet rsync sudo terminfo wget"
  kiwi --prepare suse-${OS}-JeOS --root $ROOTFS --add-profile kvmFlavour  $(for p in $PKGS; do echo --add-package $p; done)
+
  kiwi --prepare suse-${OS}-JeOS --root $ROOTFS $(for p in $PKGS; do echo --add-package $p; done)
  
  chroot /data/$OS}min
+
  chroot /data/${OS}min
 
  mount /proc
 
  mount /proc
 
  mount -tsysfs /sys /sys
 
  mount -tsysfs /sys /sys
Line 17: Line 17:
 
  touch /bin/on_ac_power
 
  touch /bin/on_ac_power
 
  export rootfstype="ext4"
 
  export rootfstype="ext4"
  mkinitrd -d /dev/null -m "ext4 binfmt_misc"
+
  mkinitrd -d /dev/null -m "ext4 binfmt_misc virtio_pci virtio_blk"

Revision as of 18:37, 22 November 2011

Preparing an openSuse chroot

Prepare an openSUSE minimal image. This is done on a suitable opensuse machine (eg phost14) and then rsync'ed to zathras /data/11.4

zypper in kiwi-templates
OS=11.4
ROOTFS=/data/${OS}min
mkdir -p ${ROOTFS}
rm -rf ${ROOTFS}
PKGS="emacs-nox iputils kernel less puppet rsync sudo terminfo wget"
kiwi --prepare suse-${OS}-JeOS --root $ROOTFS $(for p in $PKGS; do echo --add-package $p; done)
chroot /data/${OS}min
mount /proc
mount -tsysfs /sys /sys
mount -tdevpts /dev/pts /dev/pts
touch /bin/on_ac_power
export rootfstype="ext4"
mkinitrd -d /dev/null -m "ext4 binfmt_misc virtio_pci virtio_blk"
Personal tools