DNF: Only one kernel-devel package allowed?
by Richard Shaw
I'm assuming this is DNF and not some other change...
Yum allowed multiple kernel-devel packages to be installed, dnf does not,
which prevents you from building kernel modules for other kernel releases.
Was there a good reason for this change in behavior?
Thanks,
Richard
8 years, 8 months
dracut fails to include support for md RAID
by Alex
HI,
I have a fedora22 system that's been working fine for some time, but
any new kernels fail to boot properly. The system is configured with
/boot and / on RAID1. The rdsosreport.txt that dracut produces shows
no indication of md RAID support in /proc/mdstat and no RAID devices
listed with blkid or in /dev.
I've tried rebuilding the initramfs images manually on the running
system and it still doesn't include RAID support.
What could be causing grub and/or dracut to not detect the RAID
devices or include support for them?
I've included my grub2.cfg and fstab, and fdisk output.
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 76D351F7-9CB4-4F70-A62F-2903227191B3
Device Start End Sectors Size Type
/dev/sda1 2048 1026047 1024000 500M Linux RAID
/dev/sda2 1026048 476162047 475136000 226.6G Linux RAID
/dev/sda3 476162048 484550655 8388608 4G Linux swap
/dev/sda4 484550656 484552703 2048 1M BIOS boot
Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1861B0D0-EA55-418B-B179-B6BB700EEAC7
Device Start End Sectors Size Type
/dev/sdb1 2048 1026047 1024000 500M Linux RAID
/dev/sdb2 1026048 476162047 475136000 226.6G Linux RAID
/dev/sdb3 476162048 484550655 8388608 4G Linux swap
/dev/sdb4 484550656 484552703 2048 1M BIOS boot
fstab:
UUID=64ce5a40-bd28-460f-965b-ec43fd1eb2f7 / ext4 defaults
1 1
UUID=96187b22-1ad9-4d44-a35a-89b746e270ee /boot ext4
defaults 1 2
/dev/sda3 swap swap
defaults 0 0
/dev/sdb3 swap swap
defaults 0 0
### BEGIN /etc/grub.d/00_header ###
insmod raid
insmod mdraid09
insmod mdraid1x
set pager=1
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod part_gpt
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/485085777ca70c519fcb92fd471164a4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint='mduuid/485085777ca70c519fcb92fd471164a4'
64ce5a40-bd28-460f-965b-ec43fd1eb2f7
else
search --no-floppy --fs-uuid --set=root 64ce5a40-bd28-460f-965b-ec43fd1eb2f7
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora 22 (Twenty Two)' --class fedora --class gnu-linux
--class gnu --class os --unrestricted $menuentry_id_option
'gnulinux-simple-64ce5a40-bd28-460f-965b-ec43fd1eb2f7' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod part_gpt
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/7d1bec3121f39ea4c90f78a6083e81e9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint='mduuid/7d1bec3121f39ea4c90f78a6083e81e9'
96187b22-1ad9-4d44-a35a-89b746e270ee
else
search --no-floppy --fs-uuid --set=root
96187b22-1ad9-4d44-a35a-89b746e270ee
fi
linux16 /vmlinuz-4.1.8-200.fc22.x86_64
root=UUID=64ce5a40-bd28-460f-965b-ec43fd1eb2f7 ro
initrd16 /initramfs-4.1.8-200.fc22.x86_64.img
}
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
8 years, 8 months
dnf hangs - looking for advice
by Timothy Murphy
I've install Fedora-23 beta from a KDE Live USB stick,
and it seems to be working fine.
The installation went quickly with no problems.
However, on running "sudo dnf update",
all 542 packages were downloaded OK,
but then dnf hung after a few cleanups, at
Cleanup: initial-setup-0.3.35-1.fc23.x86_64
I ran "sudo dnf clean all" and then update again,
but it just tells me
Nothing to do.
Complete!
Is there any way of completing the cleanup?
Or is that unnecessary?
--
Timothy Murphy
gayleard /at/ eircom.net
School of Mathematics, Trinity College, Dublin
8 years, 8 months
Binary file
by Patrick Dupre
Hello,
When I make a grep on files, I can get:
Binary file foo matches.
How can I recognize a binary file (without using grep)?
Actually it seems to be a file with characters above the standard ascii character.
I did not find any option of ls for example.
Thank
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
8 years, 8 months
Workstation 23 (Beta) locking up
by Sanne Grinovero
Hi all,
I was brave enough to upgrade my primary work laptop - a Lenovo laptop
T440s - from Fedora 22 (workstation) to the Beta of version 23.
The upgrade was smooth, Gnome 3 is working great, and it's all looking
gorgeous but the machine occasionally seems to "freeze" and I have to
long-press the power button to force a shut down as it won't react to
any other key combination I tried (from ctrl-alt-del to
ctrl-alt-F1..F9, ctrl-alt-backspace).
Kernel version is 4.2.1-300.fc23.x86_64 (not tainted nor customized).
The boot command line is the "vanilla" one:
BOOT_IMAGE=/vmlinuz-4.2.1-300.fc23.x86_64
root=UUID=f12bc342-dcf1-4c72-815f-4d3c0475a9f0 ro
rootflags=subvol=root vconsole.font=latarcyrheb-sun16 rhgb quiet
Is there anything I can do to help getting this fixed?
I guess a good start would be to report it on some issue tracker, but
I'm not sure which one, or which component: I probably need some help
to narrow it done somewhat?
Thanks,
Sanne
8 years, 8 months
kmod-nvidia-304xx and dnf
by Javier Perez
I have a problem. It happened also with yum, therefore it is not unique to
dnf, but dnf inherited the task of updating the system.
Oftentimes, the kernel is updated and the corresponding kmod-nvidia package
is not yet published. If I update the system, the kernel is updated, but
because the kmod-nvidia package is not likewise updated, I end up with a
black screen.
I can solve it easily by booting to the former kernel, but I wonder. Is
there a way to keep the kernel from being ujpdated if the corresponding
kmod-nvidia package is not available to be updated as well?
--
------------------------------
/\_/\
|O O| pepebuho(a)gmail.com
~~~~ Javier Perez
~~~~ While the night runs
~~~~ toward the day...
m m Pepebuho watches
from his high perch.
8 years, 8 months
fix a txt/dat file with soccer data using awk and sort
by Antonio Olivares
Dear fedora users,
I have a file table.dat with team data ie, Wins Loses Draws Goals For, Goals Against, Total Points as follows:
$ cat table.dat
Team W L D GF GA DIF PTS
Team1 3 2 1 13 17
Team2 2 3 1 14 13
Team3 6 0 0 28 13
Team4 0 6 0 5 23
Team5 0 0 0 0 0
$ awk '{print $1 "\t" $2 "\t" $3 "\t" $4 "\t" $5 "\t" $6 "\t" $7 "\t" $8 "\t" $5-$6, "\t" $2*3+$3*0+$4*1}' table.dat
Team W L D GF GA DIF PTS 0 0
Team1 3 2 1 13 17 -4 10
Team2 2 3 1 14 13 1 7
Team3 6 0 0 28 13 15 18
Team4 0 6 0 5 23 -18 0
Team5 0 0 0 0 0 0 0
bash-4.3$
I can get the DIF by subtracting the 5th - 6th and get the goal differential, and the points by multiplying the Wins by 3 and the loses by 0 and the ties by 1 and get the points. I am not expert, but instead of using a spreadsheet I would like to use awk as the example shows, but I would like the DIF to be under DIF and the points under PTS, how can I accomplish this? Also if it were possible which I do not see why not? is how can I sort the teams by the ones higher in the table?
For example, I would like to do something like:
http://www.premierleague.com/en-gb/matchday/league-table.html/
http://www.mlssoccer.com/standings
http://www.mediotiempo.com/tabla_general.php?id_liga=1
but only using awk/sed/sort no spreadsheet, no database only nice unix/linux/bsd tools
Also add a variation, if the teams tie in regulation, then overtime kicks(extra time) and/or penalty kicks to determine a winner. If the team wins in overtime or penalty kicks the winning team earns two points and the loser earns one point only
Team W L D GF GA OT/PKS DIF PTS
Team1 3 2 1 13 17
Team2 2 3 1 14 13
Team3 6 0 0 28 13
Team4 0 6 0 5 23
Team5 0 0 0 0 0
Here Team1 ties with Team2 and they go into overtime and remain tied in Overtime. After the overtime, they go into Penalty Kicks. Team2 beats Team1 in PKS and earns two points, in the overall PTS
team1 earns 10 total pts, and team2 should have 8 pts. But the awk command on top gives 7 points because it does not take into account PKS.
awk '{print $1 "\t" $2 "\t" $3 "\t" $4 "\t" $5 "\t" $6 "\t" $7 "\t" $8 "\t" $5-$6, "\t" $2*3+$3*0+$4*1}' table.dat
how can it be done so that the table prints out correctly and in the OT/PKS line, the team that wins gets a 1:0 and the losing team gets a 0:1 and each time they tie and go in to OT, a running tally gets going 2:0 or 1:1 depending if they split the games.
Thank you in advance for suggestions and advice. I am discovering awk that one can do math to lists and tables it is awesome. I did not know this, I just used sed -i 's|*|x|g' file to replace text x with *.
Best Regards,
Antonio
____________________________________________________________
Send your photos by email in seconds...
TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if3
Works in all emails, instant messengers, blogs, forums and social networks.
8 years, 8 months
[SOLVED] Re: dracut fails to include support for md RAID
by Alex
So despite grub2 acknowledging that the currently running system has
RAID support, provides a hint for the md device, loads the mdraid1x
and other RAID drivers and modules, it for some reason changed to not
automatically starting any RAID devices on boot.
Added "rd.auto" to the linux16 command line and it works now. So frustrating.
How could it work fine for one kernel of the release then all of the
sudden have the default change for another kernel version?!? wtf,
fedora.
I suppose adding "rd.md.uuid=..." may have been enough to prompt it to
start the arrays.
On Sun, Oct 4, 2015 at 1:03 AM, Alex <mysqlstudent(a)gmail.com> wrote:
> HI,
>
> I have a fedora22 system that's been working fine for some time, but
> any new kernels fail to boot properly. The system is configured with
> /boot and / on RAID1. The rdsosreport.txt that dracut produces shows
> no indication of md RAID support in /proc/mdstat and no RAID devices
> listed with blkid or in /dev.
>
> I've tried rebuilding the initramfs images manually on the running
> system and it still doesn't include RAID support.
>
> What could be causing grub and/or dracut to not detect the RAID
> devices or include support for them?
>
> I've included my grub2.cfg and fstab, and fdisk output.
>
> Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 76D351F7-9CB4-4F70-A62F-2903227191B3
>
> Device Start End Sectors Size Type
> /dev/sda1 2048 1026047 1024000 500M Linux RAID
> /dev/sda2 1026048 476162047 475136000 226.6G Linux RAID
> /dev/sda3 476162048 484550655 8388608 4G Linux swap
> /dev/sda4 484550656 484552703 2048 1M BIOS boot
>
> Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 1861B0D0-EA55-418B-B179-B6BB700EEAC7
>
> Device Start End Sectors Size Type
> /dev/sdb1 2048 1026047 1024000 500M Linux RAID
> /dev/sdb2 1026048 476162047 475136000 226.6G Linux RAID
> /dev/sdb3 476162048 484550655 8388608 4G Linux swap
> /dev/sdb4 484550656 484552703 2048 1M BIOS boot
>
> fstab:
> UUID=64ce5a40-bd28-460f-965b-ec43fd1eb2f7 / ext4 defaults
> 1 1
> UUID=96187b22-1ad9-4d44-a35a-89b746e270ee /boot ext4
> defaults 1 2
> /dev/sda3 swap swap
> defaults 0 0
> /dev/sdb3 swap swap
> defaults 0 0
>
> ### BEGIN /etc/grub.d/00_header ###
> insmod raid
> insmod mdraid09
> insmod mdraid1x
> set pager=1
>
> if [ -s $prefix/grubenv ]; then
> load_env
> fi
> if [ "${next_entry}" ] ; then
> set default="${next_entry}"
> set next_entry=
> save_env next_entry
> set boot_once=true
> else
> set default="0"
> fi
>
> if [ x"${feature_menuentry_id}" = xy ]; then
> menuentry_id_option="--id"
> else
> menuentry_id_option=""
> fi
>
> export menuentry_id_option
>
> if [ "${prev_saved_entry}" ]; then
> set saved_entry="${prev_saved_entry}"
> save_env saved_entry
> set prev_saved_entry=
> save_env prev_saved_entry
> set boot_once=true
> fi
>
> function savedefault {
> if [ -z "${boot_once}" ]; then
> saved_entry="${chosen}"
> save_env saved_entry
> fi
> }
>
> function load_video {
> if [ x$feature_all_video_module = xy ]; then
> insmod all_video
> else
> insmod efi_gop
> insmod efi_uga
> insmod ieee1275_fb
> insmod vbe
> insmod vga
> insmod video_bochs
> insmod video_cirrus
> fi
> }
>
> if [ x$feature_default_font_path = xy ] ; then
> font=unicode
> else
> insmod part_gpt
> insmod part_gpt
> insmod diskfilter
> insmod mdraid1x
> insmod ext2
> set root='mduuid/485085777ca70c519fcb92fd471164a4'
> if [ x$feature_platform_search_hint = xy ]; then
> search --no-floppy --fs-uuid --set=root
> --hint='mduuid/485085777ca70c519fcb92fd471164a4'
> 64ce5a40-bd28-460f-965b-ec43fd1eb2f7
> else
> search --no-floppy --fs-uuid --set=root 64ce5a40-bd28-460f-965b-ec43fd1eb2f7
> fi
> font="/usr/share/grub/unicode.pf2"
> fi
>
> if loadfont $font ; then
> set gfxmode=auto
> load_video
> insmod gfxterm
> set locale_dir=$prefix/locale
> set lang=en_US
> insmod gettext
> fi
> terminal_output gfxterm
> if [ x$feature_timeout_style = xy ] ; then
> set timeout_style=menu
> set timeout=5
> # Fallback normal timeout code in case the timeout_style feature is
> # unavailable.
> else
> set timeout=5
> fi
> ### END /etc/grub.d/00_header ###
>
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry 'Fedora 22 (Twenty Two)' --class fedora --class gnu-linux
> --class gnu --class os --unrestricted $menuentry_id_option
> 'gnulinux-simple-64ce5a40-bd28-460f-965b-ec43fd1eb2f7' {
> load_video
> set gfxpayload=keep
> insmod gzio
> insmod part_gpt
> insmod part_gpt
> insmod diskfilter
> insmod mdraid1x
> insmod ext2
> set root='mduuid/7d1bec3121f39ea4c90f78a6083e81e9'
> if [ x$feature_platform_search_hint = xy ]; then
> search --no-floppy --fs-uuid --set=root
> --hint='mduuid/7d1bec3121f39ea4c90f78a6083e81e9'
> 96187b22-1ad9-4d44-a35a-89b746e270ee
> else
> search --no-floppy --fs-uuid --set=root
> 96187b22-1ad9-4d44-a35a-89b746e270ee
> fi
> linux16 /vmlinuz-4.1.8-200.fc22.x86_64
> root=UUID=64ce5a40-bd28-460f-965b-ec43fd1eb2f7 ro
> initrd16 /initramfs-4.1.8-200.fc22.x86_64.img
> }
>
> ### BEGIN /etc/grub.d/40_custom ###
> # This file provides an easy way to add custom menu entries. Simply type the
> # menu entries you want to add after this comment. Be careful not to change
> # the 'exec tail' line above.
> ### END /etc/grub.d/40_custom ###
>
> ### BEGIN /etc/grub.d/41_custom ###
> if [ -f ${config_directory}/custom.cfg ]; then
> source ${config_directory}/custom.cfg
> elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
> source $prefix/custom.cfg;
> fi
> ### END /etc/grub.d/41_custom ###
8 years, 8 months
Re: F22/23 + nvidia = no boot...
by Birger Monsen
How did you install the nvidia drivers? Manually or did you use the rpmfusion packages. For rpmfusion, did you use kmod-nvidia or akmod-nvidia?
I have a few systems running akmod-nvidia-304xx, and have no problems.
linux guy <linuxguy123(a)gmail.com>:
>I know that the nvidia driver is proprietary software.
>
>Neither F22 nor F23 will boot on my laptop with kernels from the last week
>or so and the latest nvidia driver. When I attempt these kernel/driver
>combinations, it stops on the console screen which then begins flashing
>about once per second. My laptop boots normally if I use the nouveau
>driver.
>
>Does anyone know the cause or a work around for this situation ?
>
>Thanks
>
>--
>users mailing list
>users(a)lists.fedoraproject.org
>To unsubscribe or change subscription options:
>https://admin.fedoraproject.org/mailman/listinfo/users
>Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>Have a question? Ask away: http://ask.fedoraproject.org
8 years, 8 months