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
(Preparing an openSuse chroot)
 
Line 8: Line 8:
 
  mkdir -p ${ROOTFS}
 
  mkdir -p ${ROOTFS}
 
  rm -rf ${ROOTFS}
 
  rm -rf ${ROOTFS}
  PKGS="emacs-nox iputils kernel less puppet rsync sudo terminfo wget"
+
  PKGS="emacs-nox iputils kernel less puppet rsync sudo terminfo wget sysvinit"
 
  kiwi --prepare suse-${OS}-JeOS --root $ROOTFS $(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)
  
Line 18: Line 18:
 
  export rootfstype="ext4"
 
  export rootfstype="ext4"
 
  mkinitrd -d /dev/null -m "ext4 binfmt_misc virtio_pci virtio_blk"
 
  mkinitrd -d /dev/null -m "ext4 binfmt_misc virtio_pci virtio_blk"
 +
umount /dev/pts
 +
umount /sys
 +
umount /proc

Latest revision as of 20:29, 27 November 2011

[edit] 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 sysvinit"
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"
umount /dev/pts
umount /sys
umount /proc
Personal tools