[gentoo-user] Re: Output of "mount" and "cat /etc/mtab" inside install chroot?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 04/22/2014 04:48 AM, Peter Humphrey wrote: > On Monday 21 Apr 2014 19:44:45 Walter Dnes wrote: > >> *AFTER YOU CHROOT* what are the contents of /proc/self/mounts and >> /proc/mounts ? Can you >> copy either of them into /etc/mtab and have the correct result? > > No, of course it's the same as outside the chroot, because before entering, I > do a 'mount > -tproc proc /mnt/atom/proc'. I did check anyway to be sure. > You may want to check again: you likely won't see any /mnt/atom/* in /proc/mounts (which is a symlink to /proc/self/mounts), as they will have their paths correctly output for inside the chroot, but you *will* see mounts that only exist outside the chroot. /proc/self/mountinfo will only show mounts reachable from inside the chroot, but it is incompatible with the mtab format. Newer versions of mount(8) will use /proc/self/mountinfo if it detects that the final target of /etc/mtab (possibly /proc/self/mounts) is not writable. - -- Jonathan Callen -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJTVzHvAAoJELHSF2kinlg41ssP/1JO8FTHrGt6NPZm39BvMOrm GEAcQ5ZlHuzVjNc9lImYHrsiWpVXfikTqecR1P9sXZa98eZfrqXhlzpe+vZQxLu0 x/zki3wA29htlfvpRV+Bi8yieWVenNBhWkRq09nzLgglQWBsRFJUU+kIAtDX5Ynf E2MmZsa6K7uhy1Lrg4LVyqEjb1671fVvphQiB1zvjIjWc08tEqB/v4BMPuODbtJS Ame4AgvA89EFr0K1kw0NAOtxgmcpVjof1onwda8g6V84tIaq98279ratmM+knJFg 586+YKF9Ffd41twtYF3ANYgy9ruFLSZ/jlnV78IbH3FqPvzxqWmfNvET030Oq0q0 A67t4fwYO62PEwCcOlSnVLLfAQhFPKTv+Yqj1hI8l/64o52CHXIQzhnADJouw8aL i4OBkYAaFDv/uQsydsa3hQ519OG058nQZ/Sr+AN1qyp6Axum9GFqOvIzMEHpEH4P tb8Prvp+drNU+AC8uIEvCsaSSUC4wLpywwV23iAzrOQdG14SAkkz8Znrty1tSHc1 Y4lmiS4U9xRMGx1Mvz8Xat3yBOl/bRS0mAejKqjSDdZ+6Rtq1gZ7LhdBeG5Nokla Kdx1JO+QvcQDDnIj64qq6Hq1MY3zu+WYRiacx7KvpsuyIDM+Pc6qCJaRYGYveWW9 aDWZ2siL8DaOwYeRT48L =jgV4 -END PGP SIGNATURE-
[gentoo-user] Re: OpenSP build fails
On 04/22/2014 08:42 AM, Nikita Tropin wrote: > Hi, I'm trying to update Gentoo with I_KNOW_WHAT_I_AM_DOING=1 emerge > --deep --update --newuse --with-bdeps=y @world > > and process fails on OpenSP-1.5.2-r3. I am tried to compile it myself > and find those lacking `new.h' mentioned in build.log. I found in > include/xnew.h ifdef construction that responsible of choosing > appropriate file ( or ), find utility not found any > `new.h' on my /usr or build directory of OpenSP in my home dir, > however `new' was found - > /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/new Any time I see build errors in c++ programs I suspect libtool. (No, I can't explain why, I just do ;) For that reason I'd suggest running fix_libtool_files.sh, just in case your gcc ebuild didn't do it automatically. FWIW, opensp builds successfully for me and my configure logs look very much like yours (I'm using gcc-4.8.2/~amd64, though.)
Re: [gentoo-user] Point
The final -option gives me a dot instead of a comma on the keypad. Thank you for your answer, but I have just got the solution: In /etc/X11/xorg.conf.d/10-evdev.conf I have: Section "InputClass" Identifier "keyboard" Driver "evdev" Option "XkbLayout" "fr" Option "XkbModel" "pc105" Option "XkbOptions" "compose:lwin,kpdl:dot" MatchIsKeyboard "on" kpdl:dot was the key to solve my problem Regards Roger
Re: [gentoo-user] Fwd: OpenSP build fails
On 4/22/2014 12:05 PM, Nikita Tropin wrote: Problem is not in this environment variable(which influence on few packages like webkit-gtk, libreoffice) but in OpenSP package which has no common with it. I mentioned about I_KNOW_WHAT_I_AM_DOING=1 to not create additional questions about why I'm use it. However, as we calling emerge from terminal and using shell(most of all POSIX compliant), we can use both syntax, your and my and it will be correct. However, I tried your version, it doesn't work. Sorry, I was not of any help. I decided I would give it a try, since i have seen that before. Thank you for the reply and explanation Best regards ed
Re: [gentoo-user] Point
On Sat, 12 Apr 2014 18:21:57 +0200 DocRog wrote: > > > You can set it back correctly using the following HOWTO: > > > https://wiki.gentoo.org/wiki/Localization/HOWTO#Keyboard_layout_for_the_console > > Thank you for your help, but I couldn't solve > my problem using the HOWTO. > Roger > > The following snippet from my .xsession file might give you a hint: setxkbmap -option \ -option lv3:ralt_switch_multikey \ -option ctrl:ctrl_aa -option caps:ctrl_modifier \ -option keypad:legacy -option kpdl:dotoss The final -option gives me a dot instead of a comma on the keypad. s.
Re: [gentoo-user] Fwd: OpenSP build fails
Problem is not in this environment variable(which influence on few packages like webkit-gtk, libreoffice) but in OpenSP package which has no common with it. I mentioned about I_KNOW_WHAT_I_AM_DOING=1 to not create additional questions about why I'm use it. However, as we calling emerge from terminal and using shell(most of all POSIX compliant), we can use both syntax, your and my and it will be correct. However, I tried your version, it doesn't work. 2014-04-22 19:23 GMT+03:00 Edward M : > On 4/22/2014 8:40 AM, Nikita Tropin wrote: > >> Hi, I'm trying to update Gentoo with >> I_KNOW_WHAT_I_AM_DOING=1 emerge --deep --update --newuse --with-bdeps=y >> @world >> > >Hello, > > I've seen that flag used before where the one is in quotation > marks, it may help: > I_KNOW_WHAT_I_AM_DOING="1" emerge --deep --update --newuse > --with-bdeps=y @world > > Best regards > ed > > -- > Running: Gentoo w/ Systemd > > > -- Regards, Nikita
Re: [gentoo-user] Fwd: OpenSP build fails
On 4/22/2014 8:40 AM, Nikita Tropin wrote: Hi, I'm trying to update Gentoo with I_KNOW_WHAT_I_AM_DOING=1 emerge --deep --update --newuse --with-bdeps=y @world Hello, I've seen that flag used before where the one is in quotation marks, it may help: I_KNOW_WHAT_I_AM_DOING="1" emerge --deep --update --newuse --with-bdeps=y @world Best regards ed -- Running: Gentoo w/ Systemd
[gentoo-user] Re: OpenSP build fails
Sorry. 2014-04-22 18:40 GMT+03:00 Nikita Tropin : > Hi, I'm trying to update Gentoo with > I_KNOW_WHAT_I_AM_DOING=1 emerge --deep --update --newuse --with-bdeps=y > @world > > and process fails on OpenSP-1.5.2-r3. I am tried to compile it myself and > find those lacking `new.h' mentioned in build.log. I found in > include/xnew.h ifdef construction that responsible of choosing appropriate > file ( or ), find utility not found any `new.h' on my /usr or > build directory of OpenSP in my home dir, however `new' was found - > /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/new. Next, I'm > calling configure with > CXXFLAGS="-DSP_ANSI_LIB" ./configure && make > > > and was chosen on compilation. However many new errors was occur > (attached mybuild.log and mybuild_stderr.log). And I don't know how to fix > them. > > Also I'm tried to avoid installation of this package by trying to find all > and installed packages that depends on this one, tried to mask it but po4a, > man-db(nls), openjade, virtual/man and man-pages-3.63 depends on OpenSP. > The paradox is that I have installed man-db-2.6.5 with nls USE flag and > update schedule man-db-2.6.6 to install but even if I mask it(2.6.6) there > still error that man-db-2.6.5 need OpenSP. I am totally confused. > > PS I've compiled OpenSP downloaded from offsite ( > http://openjade.sourceforge.net/) > PPS I'm using I_KNOW_WHAT_I_AM_DOING=1 because I have -ggdb in CFLAGS in > make.conf but some packages like webkit-gtk probably need 18G for debug > symbols on some system but not in my, so. > PPPS With clang the same thing > > Thanks in advance. > > -- > Regards, > Nikita > -- Regards, Nikita
Re: [gentoo-user] Output of "mount" and "cat /etc/mtab" inside install chroot?
On Mon, Apr 21, 2014 at 7:44 PM, Walter Dnes wrote: > On Mon, Apr 21, 2014 at 09:38:44AM +0100, Peter Humphrey wrote >> On Monday 21 Apr 2014 00:55:56 yac wrote: >>> On Sat, 19 Apr 2014 13:54:07 +0100 >>> Peter Humphrey wrote: The installation handbook used to include a command to write /etc/mtab in the chroot by grepping the host mtab >>> >>> It was part of grub-install, now grub legacy >>> >>> https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=10#doc >>> _chap4 >> >> Yes, thanks, a couple of people posted what it says here the other >> day. Now I'm puzzling over whether it's good advice. >> >> For instance, suppose I want to reinstall the chroot in which I keep >> an image of my Atom box here on my workstation. Then /etc/mtab has: >> /dev/md5 / [...] >> but once I chroot into /mnt/atom, where the image lives, that's wrong and >> should be: >> /dev/mapper/vg7-atom / [...] >> because vg7-atom is now the root of the file system. >> >> Does the handbook need an update? Or maybe it's right after all >> because when grub runs its installer it's unconcerned with where >> it's invoked from. >> >> [Wanders off stage-left, muttering and scratching his head...] > > *AFTER YOU CHROOT* what are the contents of /proc/self/mounts and > /proc/mounts ? Can you copy either of them into /etc/mtab and have the > correct result? I duped a Gentoo VM on my laptop, launched it, and looked at the output of "grep ' / ' /proc/mounts" in the "/mnt" chroot after mounting "/mnt/proc" before and after the chroot, which is unsurprisingly the same. What are you trying to find out? I haven't used lilo for 12 years at least. Does it operate using "/proc/self/mounts" or "/etc/mtab"? mount/umount, for example, use "/etc/mtab". grub-install, AFAIR, uses "/proc/self/mountinfo" as well as the "/sys/devices/" hierarchy. localhost ~ # mount /dev/vdb1 /mnt localhost ~ # mount -t proc proc /mnt/proc localhost ~ # chroot /mnt localhost / # grep ' / ' /proc/mounts rootfs / rootfs rw 0 0 /dev/disk/by-uuid/fe087ffc-ccb6-48ce-a8f7-a3a6d0fb20e3 / xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/vdb1 / xfs rw,relatime,attr2,inode64,noquota 0 0 localhost / # exit exit localhost ~ # umount /mnt/proc localhost ~ # chroot /mnt localhost / # mount -t proc proc /proc localhost / # grep ' / ' /proc/mounts rootfs / rootfs rw 0 0 /dev/disk/by-uuid/fe087ffc-ccb6-48ce-a8f7-a3a6d0fb20e3 / xfs rw,relatime,attr2,inode64,noquota 0 0 /dev/vdb1 / xfs rw,relatime,attr2,inode64,noquota 0 0 localhost / # exit exit localhost ~ # xfs_admin -u /dev/vda1 UUID = fe087ffc-ccb6-48ce-a8f7-a3a6d0fb20e3 localhost ~ #
Re: [gentoo-user] Output of "mount" and "cat /etc/mtab" inside install chroot?
On Monday 21 Apr 2014 19:44:45 Walter Dnes wrote: > *AFTER YOU CHROOT* what are the contents of /proc/self/mounts and > /proc/mounts ? Can you copy either of them into /etc/mtab and have the > correct result? No, of course it's the same as outside the chroot, because before entering, I do a 'mount -tproc proc /mnt/atom/proc'. I did check anyway to be sure. -- Regards Peter