[Bug 1630017] Comment bridged from LTC Bugzilla

bugproxy bugproxy at us.ibm.com
Tue Oct 11 14:59:38 UTC 2016


------- Comment From erwan.prioul at fr.ibm.com 2016-10-11 10:49 EDT-------
I gave a try on a baremetal installation with the daily image available on October 9th.
I didn't get the grub error on installation, but after the reboot, petitboot doesn't show the JFS partition (/dev/sda2) to boot from.

I tried another run and just before the reboot, I installed grub
manually from a shell. Here a snippet of the error message:

...
grub-install: info: Partition 0 starts from 2048.
grub-install: info: Partition 1 starts from 16384.
grub-install: info: grub-mkimage --directory '/usr/lib/grub/powerpc-ieee1275' --prefix '(,gpt2)/boot/grub' --output '/boot/grub/powerpc-ieee1275/core.elf' --format 'powerpc-ieee1275' --compression 'auto'  'jfs' 'part_gpt'
.
grub-install: info: the total module size is 0x2a14.
grub-install: info: reading /usr/lib/grub/powerpc-ieee1275/kernel.img.
grub-install: info: locating the section .text at 0x0.
grub-install: info: locating the section .rodata at 0xcd0c.
grub-install: info: locating the section .eh_frame at 0xf23c.
grub-install: info: locating the section .data at 0xf2e0.
grub-install: info: locating the section .module_license at 0xffa0.
grub-install: info: locating the section .sdata at 0xffc0.
grub-install: info: locating the section .sbss at 0xffd0.
grub-install: info: locating the section .bss at 0x10038.
grub-install: info: reading /usr/lib/grub/powerpc-ieee1275/jfs.mod.
grub-install: info: reading /usr/lib/grub/powerpc-ieee1275/part_gpt.mod.
grub-install: info: kernel_img=0x10005288b90, kernel_size=0xffce.
grub-install: info: the core size is 0x129e2.
grub-install: info: writing 0x12b24 bytes.
grub-install: info: copying `/boot/grub/powerpc-ieee1275/core.elf' -> `/boot/grub/grub'.
grub-install: info: drive = 0.
grub-install: info: the size of hostdisk//dev/sda is 3907029168.
grub-install: error: the chosen partition is not a PReP partition.

BTW, if I set the partition as ext4 or btrfs instead of JFS, it works. I
mean, grub isn't installed (it couldn't as there is no Prep partition /
there is no grub msg in dmesg) but petitboot shows the partition and I
can boot from it.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-prep in Ubuntu.
https://bugs.launchpad.net/bugs/1630017

Title:
  Ubuntu 16.10 installation with root as JFS file system fails

Status in partman-prep package in Ubuntu:
  Incomplete

Bug description:
  ---Problem Description---
  Ubuntu 16.10 installation with root as JFS file system fails.

  ---Boot type---
  Net boot

  Machine Type = Power8

  ---Steps---

   From petitboot menu pass kick off installation of Ubuntu 16.10

  kernel-->http://ports.ubuntu.com/ubuntu-ports/dists/yakkety/main/installer-ppc64el/current/images/netboot/ubuntu-installer/ppc64el/vmlinux 
  initrd -->http://ports.ubuntu.com/ubuntu-ports/dists/yakkety/main/installer-ppc64el/current/images/netboot/ubuntu-installer/ppc64el/initrd.gz
  Boot arguments-->netcfg/disable_dhcp=true netcfg/confirm_static=true netcfg/choose_interface=98:be:94:05:63:10 netcfg/get_ipaddress=9.47.69.255/20 netcfg/get_gateway=9.47.79.254 netcfg/get_nameservers="9.12.16.2" 


  Choose JFS as file system for root
    ?????????????????????????? [!!] Partition disks ???????????????????????????
    ?                                                                         ?
    ? This is an overview of your currently configured partitions and mount   ?
    ? points. Select a partition to modify its settings (file system, mount   ?
    ? point, etc.), a free space to create partitions, or a device to         ?
    ? initialize its partition table.                                         ?
    ?                                                                         ?
    ?           >             1.0 MB       FREE SPACE                         ?
    ?           >     #1      7.3 MB    K                        ?            ?
    ?           >     #2    959.7 GB    K  jfs           /       ?            ?
    ?           >     #3     40.5 GB    K  swap          swap    ?            ?
    ?           >           728.6 kB       FREE SPACE            ?            ?
    ?           SCSI5 (0,0,0) (sdk) - 1.0 TB ATA ST1000NX0313    ?            ?
    ?           >             1.0 TB       FREE SPACE            ?            ?
    ?                                                            ?            ?
    ?           Undo changes to partitions                                    ?
    ?           Finish partitioning and write changes to disk                 ?
    ?                                                                         ?
    ?     <Go Back>                                                           ?
    ?                                                                         ?
    ???????????????????????????????????????????????????????????????????????????

  And continue with the installtion.

  Installtion fails with below message.

  <F1> for help; <Tab> moves; <Space> selects; <Enter> activates buttons

               ?? [!!] Install the GRUB boot loader on a hard disk ??
    ????????????                                                    ? ?????????
    ?          ?        Unable to install GRUB in /dev/sdj1         ?         ?
    ?          ? Executing 'grub-install /dev/sdj1' failed.         ?         ?
    ?          ?                                                    ?         ?
    ? Running "? This is a fatal error.                             ?         ?
    ?          ?                                                    ?         ?
    ????????????     <Go Back>                       <Continue>     ? ?????????
               ?                                                    ?
               ??????????????????????????????????????????????????????



  
  <Tab> moves; <Space> selects; <Enter> activates buttons



       ????????? [!!] Install the GRUB boot loader on a hard disk ??????????
       ?                                                                   ?
       ?                     Installation step failed                      ?
       ? An installation step failed. You can try to run the failing item  ?
       ? again from the menu, or skip it and choose something else. The    ?
       ? failing step is: Install the GRUB boot loader on a hard disk      ?
       ?                                                                   ?
       ?                            <Continue>                             ?
       ?                                                                   ?
       ?????????????????????????????????????????????????????????????????????



  
  <Tab> moves; <Space> selects; <Enter> activates buttons

  I see in the following that /dev/sdj1 is reportedly being "wiped"

  Oct  3 09:46:30 grub-installer: info: Identified partition label for /dev/sdj2: gpt
  Oct  3 09:46:30 grub-installer: info: Wiping PReP partition /dev/sdj1

  and then later you see

  Oct  3 09:46:33 in-target: grub-install: error: unknown filesystem.^M
  Oct  3 09:46:33 in-target: Failed: grub-install --target=powerpc-ieee1275 /dev/sdj1^M
  Oct  3 09:46:33 in-target: WARNING: Bootloader is not properly installed, system may not be bootable^M

  and then towards the end

  Oct  3 09:46:33 os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sdj1
  Oct  3 09:46:34 kernel: [ 2476.418986] hfsplus: unable to load nls for utf8
  Oct  3 09:46:34 os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sdj2
  Oct  3 09:46:34 os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sdj2
  Oct  3 09:46:34 os-prober: debug: /dev/sdj3: is active swap
  Oct  3 09:46:34 grub-installer: info: Installing grub on '/dev/sdj1'
  Oct  3 09:46:34 grub-installer: info: grub-install does not support --no-floppy
  Oct  3 09:46:34 grub-installer: info: Running chroot /target grub-install  --force "/dev/sdj1"
  Oct  3 09:46:34 grub-installer: Installing for powerpc-ieee1275 platform.
  Oct  3 09:46:34 grub-installer: grub-install: error: unknown filesystem.
  Oct  3 09:46:34 grub-installer: error: Running 'grub-install  --force "/dev/sdj1"' failed.

  It isn't clear to me that JFS has much to do with this but will mirror
  this to Ubuntu installer folks. It is also odd that /dev/sdj1 doesn't
  show any filesystem on the "Partition disks" panel as the partman log
  shows ext2.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-prep/+bug/1630017/+subscriptions



More information about the foundations-bugs mailing list