Feb. 16 Slackware64-current iso will not recognize GPT
I'm using Eric's automatically generated ISO to install the sweet new February 16 Slackware64-current (glibc 2.21!). The problem is it won't recognize a GPT table, only MBR. I've never run into this issue before in the 500 or so times I've installed Slackware.
The message I get when entering setup is: Code:
NO LINUX PARTITIONS DETECTED Code:
# gdisk -l /dev/sda I tried using both parted and gdisk to set up one big partition using GPT (w/ protective MBR), I even tried setting up the partitioning, formatting the big partition as ext4 (mkfs.ext4), and then rebooting, but am still receiving the same error. This has never been an issue before (installing with the January 28 ISO did not have this problem, or any ISO I've installed back to 13.37). P.S. MBR is recognized instantly. Thanks for the help, Ryan |
Confirmed
No help here, but I have the identical problem entering setup John |
I did a search through here, but I can't imagine what would be causing this. The only kernel change is related to APIC stuff, and the sysvinit changes just affect output.
http://cgit.notk.org/adrien/slackwar...721e217943a7e2 |
Almost surely due to changes in util-linux. I've not looked at the installer, but perhaps it screen-scrapes something to determine presence of linux partitions, and util-linux changed the output format of that something. That's a place to start looking anyway...
|
1 Attachment(s)
All I know is that the script /sbin/probe (attached) in the initrd that makes the checks in Slackware64-14.1 and Slackware64-current is identical.
Here is the code snippet from /usr/lib/setup/setup that calls it (also unchanged): Code:
# Before probing, activate any LVM partitions |
Quote:
bf04: http://s11.postimg.org/bxrmcfegz/Scr...1_52_41_PM.png 8300: http://s27.postimg.org/a465j43xv/Scr...1_53_02_PM.png Could this actually be due to a change in grep? |
And removing the dollar sign from both instances in that if loop allows the installer to recognize the partition correctly:
http://s3.postimg.org/5stlz2vg3/Scre...1_58_17_PM.png |
This actually makes sense now.
`probe` outputs 'Linux filesystem' for gpt, and 'Linux' for mbr. Ergo, the if loop will not work for gpt anymore. I'll email Pat. :-) |
Here is what I sent to Pat:
Code:
if probe -l 2> /dev/null | grep -E 'Linux$' 1> /dev/null 2> /dev/null ; then |
The behaviour seems to be related to fdisk in util-linux, which recognises GPT partitions now.
On my Slackware64-current UEFI VM: Code:
#fdisk -l /dev/vda Code:
#fdisk -l /dev/sda |
That seems reasonable, but without knowing what the probe used to output (i.e. in 14.1), I hate to say for sure.
EDIT: That ^^ was a reply to ryanpcmcquen, but it's pretty clear now (based on the post after ryan's) what the output used to be; thanks! |
Screenshot from a 14.1 iso, the first line ends in 'Linux' (from `probe`).
http://s1.postimg.org/yqd6eh3pr/Scre...3_17_36_PM.png |
Modifying the setup code like so:
Code:
if probe -l 2> /dev/null | grep -E 'Linux$' 1> /dev/null 2> /dev/null ; then http://s17.postimg.org/fc4sj4dkf/20150218_073619.jpg Code:
image = /boot/vmlinuz Code:
/mnt/sbin/lilo -C /mnt/etc/lilo.conf |
I sent Pat a different fix for the issue, since pxesetup also depends on probe output and there was an additional issue detecting EFI system partitions.
The change I recommended to Pat was to add before the cat in /sbin/probe: Code:
sed -i -e 's/ filesystem//g' $TMP/SeTfdisk liloconfig depends on the probe output as well when run from an install disk. Line 539 of liloconfig is Code:
LNXP="`PROBE -l | grep "Linux$"`" |
Just to clarify, as a reminder we have actually two different "probe":
Code:
# This is a different 'probe' than the function below. |
All times are GMT -5. The time now is 04:13 PM. |