You are not logged in.
Hi,
I'm trying to make an arch-based livecd using archiso following this guide, but when I try to boot from the ISO it generates in qemu it fails and outputs this:
Following some google searches I found this thread where someone suggests that the problem is caused by a missing filesystem label. How do I check/correct this?
My spider-sense tells me that the answer may lie in fstab, with archiso do I have to manually configure an fstab file? If so, how should it look? I would guess something like this:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
Label=ARCH_201204 / iso??? defaults 0 1But I don't really know what to do...
Any help would be appreciated
Last edited by gav989 (2012-04-15 18:37:04)
Intel i5-6500 / nvidia GTX 960 / Gigabyte GA-Z170X-Gaming 3 EU Motherboard / 8gb RAM / i3 wm
Offline
extra bonus info:
i'm making a 32-bit iso on a 32-bit system
the packages I added to the packages.i686 file (note: i didn't remove any of the defaults)
xorg-server
xorg-xinit
xf86-video-nv
xf86-video-ati
xf86-video-intel
jre7-openjdk
chromium
flashplugin
thunar
gvfs
gvfs-afc
thunar-volman
gnome-icon-theme
sakura
evince
eog
consolekit
wbar
wicd
wicd-gtk
ttf-liberation
dbus
slim
openbox
obconf
obmenu
lxappearancethe rc.conf I used:
#
# /etc/rc.conf - Main Configuration for Arch Linux
. /etc/archiso/functions
LOCALE_DEFAULT="en_GB.UTF-8"
DAEMON_LOCALE_DEFAULT="no"
CLOCK_DEFAULT="UTC"
TIMEZONE_DEFAULT="Europe/London"
KEYMAP_DEFAULT="uk"
CONSOLEFONT_DEFAULT="Lat2-Terminus16"
CONSOLEMAP_DEFAULT=
USECOLOR_DEFAULT="yes"
LOCALE="$(kernel_cmdline locale ${LOCALE_DEFAULT})"
DAEMON_LOCALE="$(kernel_cmdline daemon_locale ${DAEMON_LOCALE_DEFAULT})"
HARDWARECLOCK="$(kernel_cmdline clock ${CLOCK_DEFAULT})"
TIMEZONE="$(kernel_cmdline timezone ${TIMEZONE_DEFAULT})"
KEYMAP="$(kernel_cmdline keymap ${KEYMAP_DEFAULT})"
CONSOLEFONT="$(kernel_cmdline consolefont ${CONSOLEFONT_DEFAULT})"
CONSOLEMAP="$(kernel_cmdline consolemap ${CONSOLEMAP_DEFAULT})"
USECOLOR="$(kernel_cmdline usecolor ${USECOLOR_DEFAULT})"
MODULES=()
UDEV_TIMEOUT=30
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
HOSTNAME="livemaths"
DAEMONS=(hwclock syslog-ng crond dbus wicd slim)slim.conf
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
# numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd some command
# sessionstop_cmd some command
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions xfce4,icewm,wmaker,blackbox
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user student
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password no
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login yes
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme default
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.logand I set up the user using the passwd, shadow and group files as suggested in that howto and the archwiki, those files look like this:
user: student
password: maths
/etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody:x:99:99:nobody:/:/bin/false
dbus:x:81:81:System message bus:/:/bin/false
student:x:1000:100:student,,,:/home/student:/bin/bash
avahi:x:84:84:avahi:/:/bin/false
usbmux:x:140:140:usbmux user:/:/sbin/nologin
/etc/shadow
root:$1$UId9eEkk$g.kV2ZU193y84xCNeKibF/:15444:0:99999:7:::
bin:x:14871::::::
daemon:x:14871::::::
mail:x:14871::::::
ftp:x:14871::::::
http:x:14871::::::
nobody:x:14871::::::
dbus:!:15300:0:99999:7:::
avahi:!:15300::::::
usbmux:!:15300:0:99999:7:::
student:$1$UId9eEkk$g.kV2ZU193y84xCNeKibF/:15444:0:99999:7:::
/etc/group
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,student
mem:x:8:
kmem:x:9:
wheel:x:10:root,student
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root
utmp:x:20:
locate:x:21:
rfkill:x:24:
smmsp:x:25:
http:x:33:
games:x:50:student
network:x:90:
video:x:91:student
audio:x:92:student
optical:x:93:student
floppy:x:94:student
storage:x:95:student
scanner:x:96:student
power:x:98:,student
nobody:x:99:
users:x:100:
dbus:x:81:
avahi:x:84:
camera:x:97:
usbmux:x:140:
kvm:x:78:Intel i5-6500 / nvidia GTX 960 / Gigabyte GA-Z170X-Gaming 3 EU Motherboard / 8gb RAM / i3 wm
Offline
Check if you have the necessary hooks included in your initramfs. More details to be found on the wiki.
Burninate!
Offline
Thanks for the reply.
The wiki implies that I don't need to use the "setup (manual way)" section because I used the automatic method.
Should I create a mkinitcpio.conf file in the /tmp/releng/root-image/etc directory of my chroot?
Also, forgive me for this one, what are the necessary hooks? The hooks in my mkinitcpio.conf on my current system (64-bit with gnome 3) are
HOOKS="base udev autodetect pata scsi sata filesystems usbinput"Should I just use those?
Edit: is the first part of this readme what I need to do? I don't quite understand this readme...
Last edited by gav989 (2012-04-14 14:10:26)
Intel i5-6500 / nvidia GTX 960 / Gigabyte GA-Z170X-Gaming 3 EU Motherboard / 8gb RAM / i3 wm
Offline
Basically create the mkinitcpio-archiso.conf file and adding the following hooks should be sufficient.
HOOKS="base udev archiso pata scsi sata usb fw filesystems usbinput"
Afterwards, generate an initramfs image and make sure it's in the correct location (as explained on the wiki).
Burninate!
Offline
OK, I created, as host (not chroot) /home/gav/work/root-image/etc/mkinitcpio-archiso.conf and put
HOOKS="base udev archiso pata scsi sata usb fw filesystems usbinput"
COMPRESSION="xz"inside as instructed by the wiki, then ran
# mkarchiso -r "mkinitcpio -c /etc/mkinitcpio-archiso.conf -k /boot/vmlinuz-linux -g /boot/i686/archiso.img" runas host and it says
mount: mount point work/root-image/dev does not existI tried mkdir /home/gav/work/root-image/dev but that didn't help (was worth a shot though).
Where have I gone wrong?
And thanks again for your help, I really appreciate it
Edit: I tried making a mkinitcpio.conf in the chroot with those hooks and rebuilding but that didn't work
Last edited by gav989 (2012-04-14 16:04:46)
Intel i5-6500 / nvidia GTX 960 / Gigabyte GA-Z170X-Gaming 3 EU Motherboard / 8gb RAM / i3 wm
Offline
https://bbs.archlinux.org/viewtopic.php?id=139438
I had exactly the same problem and I believe it was caused by a udev update (this is why I think it's the udev update: https://github.com/djgera/archiso/commi … 1afd35037) . Update your archiso scripts, and make a new chroot then copy all your config files over and make it. Only problem is, there was a mkinitcpio update today which I think broke archiso too. It silently crashes every time right after running mkinitcpio when it gets to installing the custom packages stage.
Last night my system was up to date and I built an ISO which ran fine, then this morning when I wanted to make changes I had to pacman -Syu first and that's when this problem started.
Offline
hmm ok i tried using the NEW archwiki way of doing it (without a chroot) and the issue was not replicated, so i'll mark this as solved
thanks for the help guys
Intel i5-6500 / nvidia GTX 960 / Gigabyte GA-Z170X-Gaming 3 EU Motherboard / 8gb RAM / i3 wm
Offline