Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yaboot.conf to the list of file for disk migration. #1322

Merged
merged 2 commits into from Apr 25, 2017

Conversation

schabrolles
Copy link
Member

@schabrolles schabrolles commented Apr 21, 2017

yaboot.conf is used by RHEL < 7 in POWER system.

Like lilo.conf, the variable boot= must be updated in case of disk migration.

We should also add lilo.conf & yaboot.conf files to CHECK_CONFIG_FILES. What do you think ?

@gdha gdha requested a review from jsmeix April 21, 2017 07:19
@gdha gdha self-assigned this Apr 21, 2017
@gdha gdha added this to the ReaR v2.1 milestone Apr 21, 2017
Copy link
Member

@jsmeix jsmeix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current change if fine for me
and I agree to also add those files
to CHECK_CONFIG_FILES.

@schabrolles
Copy link
Member Author

@jsmeix Do I have to update CHECK_CONFIG_FILES directly in conf/default.conf ?

@jsmeix
Copy link
Member

jsmeix commented Apr 24, 2017

I think technically you could add lilo.conf and yaboot.conf files
to CHECK_CONFIG_FILES directly in default.conf
i.e. I think nothing should break if you do it this way.

But I think it would be cleaner code to add specific files
to CHECK_CONFIG_FILES via a specific script
only when really needed.

I.e. I would prefer to add PPC architecture-specific files
to CHECK_CONFIG_FILES via a PPC specific script.

In general see for example
layout/save/default/450_check_bootloader_files.sh
how specific files can be added to CHECK_CONFIG_FILES.

Interestingly layout/save/default/450_check_bootloader_files.sh
already contains (excerpts):

case $used_bootloader in
...
    (PPC)
        CHECK_CONFIG_FILES=( ${CHECK_CONFIG_FILES[@]} /etc/lilo.conf /etc/yaboot.conf)
        ;;

which seems to already do that.

@schabrolles
does layout/save/default/450_check_bootloader_files.sh
perhaps not work in practice for you?

@schabrolles
Copy link
Member Author

@jsmeix Ok for me...
The only thing is :
(PPC) bootloader could be :

  • lilo => SLES < 12
  • yaboot => RHEL < 7
  • grub2 => Ubuntu, RHEL >= 7, SLES >=12

So, We may be need to update this script with :

case $used_bootloader in
...
    (PPC)
        CHECK_CONFIG_FILES=( ${CHECK_CONFIG_FILES[@]} /etc/lilo.conf /etc/yaboot.conf /etc/grub.cfg /etc/grub2.cfg /boot/grub2/grub2.cfg /boot/grub/grub.cfg)
        ;;

@jsmeix
Copy link
Member

jsmeix commented Apr 24, 2017

@schabrolles
could you update
layout/save/default/450_check_bootloader_files.sh
plus a comment that explains why for PPC so many different
bootloader config files are added to CHECK_CONFIG_FILES
so that later also others understand the reason behind the code.

@gdha gdha merged commit f268f8c into rear:master Apr 25, 2017
@jsmeix jsmeix added enhancement Adaptions and new features fixed / solved / done labels Apr 26, 2017
@schabrolles schabrolles deleted the migrate_disk_yaboot.conf branch May 4, 2017 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adaptions and new features fixed / solved / done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants