Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 214401
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Matěj Laitl <strohel@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 214401 depends on: Show dependency tree
Bug 214401 blocks: 212696
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-23 16:30 0000
Hi,
I upgraded to new baselayout-2.0.0 & openrc-9999. Next reboot was a nightmare,
root mounted read-only and so. After investigating a little, I found out that
init scripts were reorganised and runlevels needed to be touched a little. But
when looking at openrc-9999.ebuild, I realised it should have been done
automatically. It was not done because of typo in pkg_preinst, let's see the
code:

pkg_preinst() {
        # default net script is just comments, so no point in biting people
        # in the ass by accident
        [[ -e ${ROOT}/etc/conf.d/net ]] && rm -f "${D}"/etc/conf.d/net

        has_version sys-apps/openrc || return 0

        # upgrade timezone file
        if [[ ! -e ${ROOT}/etc/timezone ]] ; then
                (
                source "${ROOT}"/etc/conf.d/timezone
                [[ -n ${TIMEZONE} ]] && echo "${TIMEZONE}" >
"${ROOT}"/etc/timezone
                )
        fi

        # baselayout bootmisc init script has been split out in OpenRC
        # so handle upgraders
        (...)


I guess the line "has_version sys-apps/openrc || return 0" should instead read
"has_version sys-apps/openrc && return 0", meaning "if there is already openrc,
skip the upgrade path" and not "if there is NOT already openrc, skip the path".

Steps to reproduce:
1. Switch to pre-2.0.0 baselayout, unmerge openrc, so that you don't have fsck,
root & friends services in /etc/init.d/
2. Upgrade to baselayout-2.0.0 & openrc-9999
3. Run etc-update, resolve all files.
4. Notice that new services (fsck, root, swap...) were NOT automatically added
to your boot runlevel, /etc/modules.autoload.d/ was not transformed into
/etc/conf.d/modules...
5. (for brave ones:) Reboot. Your root partition will be probably left mounted
read-only.

Regards, Matěj

------- Comment #1 From Matěj Laitl 2008-03-23 16:35:26 0000 -------
Let's have this bug somehow connected with bug 212696, CCing vapier.

------- Comment #2 From SpanKY 2008-03-23 17:40:43 0000 -------
dont cc me please, it simply means i get duplicate e-mails

fixed in cvs
http://sources.gentoo.org/sys-apps/openrc/openrc-9999.ebuild?r1=1.2&r2=1.3

------- Comment #3 From Matěj Laitl 2008-03-23 17:45:30 0000 -------
Oh, sorry and thanks. (will learn how Gentoo mail aliases work)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug