LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-12-2015, 09:59 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
LVM2 bug


Found a nasty little bug in LVM2 when installing it as a dependency of gparted, installed 'as is' there seems to be a conflict with the newer version and udev that will prevent booting see this:
https://bugs.gentoo.org/show_bug.cgi?id=409921
And this:
https://forums.gentoo.org/viewtopic-p-6999564.html

If you have already installed LVM2 and configured it your self you may not have come across this but in the config file in /etc/lvm/lvm.conf this line:
Code:
locking_dir = "/var/lock/lvm"
causes the boot failure ( about line 527 ), simply change it to locking_dir = "/dev/shm/lvm" to fix the problem, you can also use a sed like so:
Code:
sudo sed -i 's|/var/lock/lvm|/dev/shm/lvm|' /etc/lvm/lvm.conf
I assume this fails as /var/lock/lvm is not writable at boot time.
 
Old 08-12-2015, 10:23 AM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
/var/lock is symlink to /run/lock and /run is on tmpfs, so it should be writable, given that /run is mounted early at boot.
 
Old 08-12-2015, 10:27 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Not on my system it's not.
 
Old 08-12-2015, 10:35 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Whoops! mucked up a symlink, don't know how that happened!
 
  


Reply

Tags
boot, error, file locking, lvm2, udev



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Bug Hunting with Linux (The story of the Samsung Ultrabooks lid close / AC status bug) LXer Syndicated Linux News 0 02-25-2014 06:30 PM
LXer: How to file bug-free bug report in KDE LXer Syndicated Linux News 0 04-06-2013 09:03 PM
Bug#314905 bug fix for Ubuntu and gcc is 4.4.1 bostan Linux - General 1 12-11-2010 12:35 PM
Free space shown for VG is wrong LVM2 bug devkpict Linux - Newbie 10 06-11-2009 02:17 AM
LXer: 2008 CES: Bug Labs Introduces BUG, BUGbase. So Cool! LXer Syndicated Linux News 0 01-09-2008 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration