kamarada / Linux-Kamarada-GNOME

Archived on GitHub. Moved to GitLab: https://gitlab.com/kamarada/Linux-Kamarada-GNOME/
0 stars 1 forks source link

Installation Failed - Failed to run dracut on the target #49

Closed vinyanalista closed 5 years ago

vinyanalista commented 5 years ago

When trying to install Linux Kamarada 15.1 Beta Build 5.1 using Calamares, the installer fails at the end saying:

Installation Failed

Failed to run dracut on the target

The exit code was 1

Linux-Kamarada-GNOME-issue-49

vinyanalista commented 5 years ago

According to calamares/calamares#1245, rpcbind is missing.

vinyanalista commented 5 years ago

Solved on Linux Kamarada 15.1 Beta Build16.1.

kevinsmia1939 commented 5 years ago

Hello, I'm here from Calamares #1245. I have the same problem on live ISO opensuse TW made with KIWI. I did have rpcbind install on the live ISO, but still have "dracut module 'kiwi-live' cannot be found or installed." Not sure what happen.

According to your commit, I have to add rcpbind, remove /etc/dracut.conf.d/02-livecd.conf, and insert shellprocess into calamares/settings.conf?

My config.xml is like this:

<?xml version="1.0" encoding="utf-8"?>

<image schemaversion="6.8" name="BananaOS">
    <description type="system">
        <author>Banana</author>
        <contact>Banana</contact>
        <specification>
            Banana
        </specification>
    </description>
    <preferences>
        <type image="iso" primary="true" flags="overlay" hybrid="true" hybridpersistent_filesystem="ext4" hybridpersistent="true"/>
        <version>1.99.1</version>
        <packagemanager>zypper</packagemanager>
        <locale>en_US</locale>
        <keytable>us</keytable>
        <timezone>Asia/Bangkok</timezone>
        <rpm-excludedocs>true</rpm-excludedocs>
        <rpm-check-signatures>false</rpm-check-signatures>
        <bootsplash-theme>bgrt</bootsplash-theme>
        <bootloader-theme>openSUSE</bootloader-theme>
    </preferences>
    <preferences>
        <type image="vmx" filesystem="ext4" bootloader="grub2" kernelcmdline="splash" firmware="efi"/>
        <type image="oem" filesystem="ext4" initrd_system="dracut" installiso="true" bootloader="grub2" kernelcmdline="splash" firmware="efi">
            <oemconfig>
                <oem-systemsize>2048</oem-systemsize>
                <oem-swap>true</oem-swap>
                <oem-device-filter>/dev/ram</oem-device-filter>
                <oem-multipath-scan>false</oem-multipath-scan>
                <oem-unattended>false</oem-unattended>
            </oemconfig>
            <machine memory="512" guestOS="suse" HWversion="4">
                <vmdisk id="0" controller="ide"/>
                <vmnic driver="e1000" interface="0" mode="bridged"/>
            </machine>
        </type>
    </preferences>
    <users>
        <user password="1234" pwdformat="plain" home="/root" name="root" groups="root"/>
        <user password="1234" pwdformat="plain" home="/home/tux" name="tux" groups="tux"/>
    </users>
    <repository type="yast2" alias="Tumbleweed-Oss" imageinclude="true" priority="99">
        <source path="http://download.opensuse.org/tumbleweed/repo/oss"/>
    </repository>
    <repository type="yast2" alias="openSUSE-Tumbleweed-Non-Oss" imageinclude="true" priority="99">
        <source path="http://download.opensuse.org/tumbleweed/repo/non-oss/"/>
    </repository>
    <repository type="yast2" alias="openSUSE-Tumbleweed-Update" imageinclude="true" priority="99">
        <source path="http://download.opensuse.org/update/tumbleweed/"/>
    </repository>
    <repository type="yast2" alias="Science" imageinclude="true" priority="90">
        <source path="https://download.opensuse.org/repositories/science/openSUSE_Tumbleweed/"/>
    </repository>
    <repository type="yast2" alias="MultiMedia" imageinclude="true" priority="100">
        <source path="https://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Tumbleweed/"/>
    </repository>
    <repository type="rpm-md" alias="VSCodium" imageinclude="true" priority="99">
        <source path="https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/rpms/"/>
    </repository>
    <repository type="rpm-md" alias="NVIDIA" imageinclude="true" priority="99">
        <source path="https://download.nvidia.com/opensuse/tumbleweed/"/>
    </repository>
    <packages type="image" patternType="plusRecommended">
        <namedCollection name="base"/>    
        <namedCollection name="enhanced_base"/>    
        <namedCollection name="x11"/>  
        <namedCollection name="kde"/>  
        <namedCollection name="kde_plasma"/>
        <namedCollection name="yast2_basis"/>
        <package name="calamares"/>
        <package name="update-desktop-files"/>
        <package name="desktop-data-openSUSE-extra"/>
        <package name="yast2-qt-branding-openSUSE"/>
        <package name="yast2-control-center"/>
        <package name="yast2-fonts"/>
        <package name="htop"/>
        <package name="ksystemlog"/>
        <package name="testdisk"/>
        <package name="kate"/>
        <package name="psmisc"/>
        <package name="command-not-found"/>
        <package name="sudo"/>
        <package name="libsecret-1-0"/>
        <package name="iproute2"/>
        <package name="python2-SecretStorage"/>
        <package name="xorg-x11-server"/>
        <package name="fuse-exfat"/>
        <package name="exfat-utils"/>
        <package name="python"/>
        <package name="perl"/>
        <package name="patterns-openSUSE-base"/>
        <package name="grub2-branding-openSUSE"/>
        <package name="ifplugd"/>
        <package name="iputils"/>
        <package name="vim"/>
        <package name="grub2"/>
        <package name="grub2-i386-pc"/>
        <package name="grub2-x86_64-efi" arch="x86_64"/>
        <package name="syslinux"/>
        <package name="lvm2"/>
        <package name="plymouth"/>
        <package name="plymouth-theme-bgrt"/>
        <package name="plymouth-dracut"/>
        <package name="fontconfig"/>
        <package name="fonts-config"/>
        <package name="curl"/>
        <package name="w3m"/>
        <package name="cabextract"/>
        <package name="tar"/>
        <package name="unzip"/>
        <package name="gzip"/>
        <package name="parted"/>
        <package name="openssh"/>
        <package name="iproute2"/>
        <package name="sensors"/>
        <package name="libQt5Sensors5"/>
        <package name="libsensors4"/>
        <package name="hddtemp"/>
        <package name="less"/>
        <package name="bash-completion"/>
        <package name="dhcp-client"/>
        <package name="which"/>
        <package name="kernel-default"/>
        <package name="timezone"/>
    </packages>
    <packages type="iso">
        <package name="gfxboot-branding-openSUSE"/>
        <package name="dracut-kiwi-live"/>
    </packages>
    <packages type="oem">
        <package name="gfxboot-branding-openSUSE"/>
        <package name="dracut-kiwi-oem-repart"/>
        <package name="dracut-kiwi-oem-dump"/>
    </packages>
    <packages type="bootstrap">
        <package name="udev"/>
        <package name="filesystem"/>
        <package name="glibc-locale"/>
        <package name="cracklib-dict-full"/>
        <package name="ca-certificates"/>
        <package name="ca-certificates-mozilla"/>
        <package name="openSUSE-release"/>
    </packages>
</image>

and config.sh

#!/bin/bash
#================
# FILE          : config.sh
#----------------
# PROJECT       : OpenSuSE KIWI Image System
# COPYRIGHT     : (c) 2006 SUSE LINUX Products GmbH. All rights reserved
#               :
# AUTHOR        : Marcus Schaefer <ms@suse.de>
#               :
# BELONGS TO    : Operating System images
#               :
# DESCRIPTION   : configuration script for SUSE based
#               : operating systems
#               :
#               :
# STATUS        : BETA
#----------------
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

#======================================
# Greeting...
#--------------------------------------
echo "Configure image: [$kiwi_iname]..."

#======================================
# Mount system filesystems
#--------------------------------------
baseMount

#======================================
# Setup baseproduct link
#--------------------------------------
suseSetupProduct

#======================================
# Add missing gpg keys to rpm
#--------------------------------------
suseImportBuildKey 
rpm --import /keys/nvidia.key
rpm --import /keys/codium.gpg
rpm --import /keys/geo.key
rpm --import /keys/graphics.key
rpm --import /keys/multimedia.key
rpm --import /keys/nvidia.key
rpm --import /keys/opensuse-oss.key
rpm --import /keys/packman.key
rpm --import /keys/science.key
#======================================
# Disable services
#--------------------------------------
baseRemoveService wicked
baseRemoveService wickedd
baseRemoveService wickedd-auto4
baseRemoveService wickedd-dhcp4
baseRemoveService wickedd-dhcp5
baseRemoveService wickedd-nanny
#======================================
# Activate services
#--------------------------------------
suseInsertService sshd
baseInsertService apparmor
baseInsertService appstream-sync-cache
baseInsertService auditd
baseInsertService avahi-daemon
baseInsertService bluetooth
baseInsertService cron
baseInsertService display-manager
baseInsertService firewalld
baseInsertService getty@tty1
baseInsertService haveged
baseInsertService irqbalance
baseInsertService iscsi
baseInsertService kbdsettings
baseInsertService mcelog
baseInsertService ModenManager
baseInsertService NetworkManager
baseInsertService NetworkManager-dispatcher
baseInsertService NetworkManager-wait-online
baseInsertService nscd
baseInsertService purge-kernels
baseInsertService smartd
baseInsertService systemd-remount-fs
baseInsertService systemd-timesyncd
baseInsertService YaST2-Firstboot
baseInsertService YaST2-Second-Stage

#======================================
# Setup default target, multi-user
#--------------------------------------

#==========================================
# remove package docs
#------------------------------------------
rm -rf /usr/share/doc/packages/*
rm -rf /usr/share/doc/manual/*
rm -rf /opt/kde*

#======================================
# only basic version of vim is
# installed; no syntax highlighting
#--------------------------------------
sed -i -e's/^syntax on/" syntax on/' /etc/vimrc

#======================================
# SuSEconfig
#--------------------------------------
baseUpdateSysConfig /etc/sysconfig/windowmanager DEFAULT_WM plasma5
baseUpdateSysConfig /etc/sysconfig/displaymanager DISPLAYMANAGER sddm
baseUpdateSysConfig /etc/sysconfig/displaymanager DISPLAYMANAGER_AUTOLOGIN tux
baseSetRunlevel 5
suseConfig

#==========================================
# configure flatpak
#------------------------------------------
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install -vv --ostree-verbose flathub net.openra.OpenRA
flatpak install -vv --ostree-verbose flathub com.slack.Slack
#======================================
# Remove yast if not in use
#--------------------------------------

#======================================
# Umount kernel filesystems
#--------------------------------------
baseCleanMount

exit 0
vinyanalista commented 5 years ago

According to your commit, I have to add rcpbind, remove /etc/dracut.conf.d/02-livecd.conf, and insert shellprocess into calamares/settings.conf?

I use the shellprocess Calamares module to run a post install script, which is /usr/sbin/kamarada-postinstall.sh. That script deletes /etc/dracut.conf.d/02-livecd.conf. Also, I use the shellprocess module before the dracut module in my /usr/share/calamares/settings.conf.

kevinsmia1939 commented 5 years ago

Thanks for the help, it seems that calamares that ship with opensuse doesn't have shellprocess modules, so I just clone the kamarada obs repo and trigger build for tumbleweed, hopes that goes well.

vinyanalista commented 5 years ago

Yes, @kevinsmia1939, you are right! The calamares package on openSUSE Leap 15.1 repos (version 3.1.11) does not have the shellprocess module.

"My" calamares package is a fork of the package by @embar- here:

https://build.opensuse.org/package/show/home:embar-:calamares/calamares

It is the latest version (3.2.14), which has the shellprocess module.