[ -d /live/image/bootparams/ ] && CMDLINE="$CMDLINE $(cat /live/image/bootparams/* | tr '\n' ' ')"
modprobe 9p 2>/dev/null || true
if grep -q 9p /proc/filesystems ; then
- local TAG="grml-parameters"
+ TAG="grml-parameters"
if grep -q "$TAG" /sys/bus/virtio/devices/*/mount_tag 2>/dev/null ; then
- local MOUNTDIR="$(mktemp -d)"
+ MOUNTDIR="$(mktemp -d)"
mount -t 9p -o trans=virtio,ro "$TAG" "$MOUNTDIR"
CMDLINE="$CMDLINE $(cat "$MOUNTDIR"/* 2>/dev/null | tr '\n' ' ')"
umount "$MOUNTDIR"
# {{{ print kernel info
config_kernel(){
- if $VIRTUAL ; then
- einfo "Running Linux Kernel $KERNEL $VMWARE" ; eend 0
- else
+ if $VIRTUAL && [ -n "$VIRTUAL_ENV" ] ; then
einfo "Running Linux Kernel $KERNEL inside $VIRTUAL_ENV" ; eend 0
+ else
+ einfo "Running Linux Kernel $KERNEL" ; eend 0
fi
if [ -r /proc/cpuinfo ] ; then