You are not logged in.

#1 2008-04-22 17:57:20

Demind
Member
Registered: 2007-07-10
Posts: 111

Unmount and free up the old initrd if it exists

Hi, my question is very simple, in the rc.sysinit file i find a section like this:

# Unmount and free up the old initrd if it exists
# FIXME: obsoleted by initramfs
if [ -f /initrd/linuxrc ]; then
    stat_busy "Freeing memory from Initial Ramdisk"
    /bin/umount /initrd 2>/dev/null
    /sbin/blockdev --flushbufs /dev/rd/0 2>/dev/null
    stat_done
fi

That means that i can safely comment out this section without problems?
Why it's still there if it's been obsoleted by initramfs?

Last edited by Demind (2008-04-22 17:57:40)

Offline

#2 2008-05-14 18:19:20

fatlarry
Member
Registered: 2008-05-14
Posts: 31

Re: Unmount and free up the old initrd if it exists

Take a look and see if you have an /initrd/linuxrc; if you do, I would advise you to keep it untouched, you never know... if there is no such file, the "if" is false anyway, so you can go ahead and wipe it out ...

Offline

#3 2008-05-14 22:21:19

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Unmount and free up the old initrd if it exists

fatlarry wrote:

Take a look and see if you have an /initrd/linuxrc; if you do, I would advise you to keep it untouched, you never know... if there is no such file, the "if" is false anyway, so you can go ahead and wipe it out ...

Good idea, i've just realized that my question was silly, i don't have a /initrd/linuxrc...:)

Thanks

Last edited by Demind (2008-05-14 22:21:39)

Offline

Board footer

Powered by FluxBB