Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 64308 Details for
Bug 100174
addition of linux-old symlink to the processing of the symlink use flag
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Symlink use flag code update
kernel-2.symlink-use-update.txt (text/plain), 1.28 KB, created by
Kevin Williams
on 2005-07-25 14:37:27 UTC
(
hide
)
Description:
Symlink use flag code update
Filename:
MIME Type:
Creator:
Kevin Williams
Created:
2005-07-25 14:37:27 UTC
Size:
1.28 KB
patch
obsolete
> >postinst_sources() { > local MAKELINK=0 > local MAKE_OLDLINK=0 > > # current and working Kernel tree. > local K_DIR > > # if we have USE=symlink, then force K_SYMLINK=1 > use symlink && K_SYMLINK=1 > > # if we are to forcably create the symlink for the new kernel tree, > # then first we need to delete the symlinks for the current andd backup > # kernel trees if they exsist. > if [[ -n ${K_SYMLINK} ]]; then > > if [[ -h ${ROOT}usr/src/linux ]]; then > # remove the backup kernel symlink, only when upgrading kernel > # emerging the same kernel version only removes the symlink > # for current kernel tree. > K_DIR=$(readlink ${ROOT}usr/src/linux) > [[ "${K_DIR}" != "linux-${KV_FULL}" ]] && MAKE_OLDLINK=1 > [[ -h ${ROOT}usr/src/linux-old ]] && [[ ${MAKE_OLDLINK} == 1 ]] && > rm ${ROOT}usr/src/linux-old > > # remove the link for current kernel tree > rm ${ROOT}usr/src/linux > fi > MAKELINK=1 > fi > > # enabling making a new current link if it doesn't already exsist. > [[ ! -h ${ROOT}usr/src/linux ]] && MAKELINK=1 > > # create the symlinks for the current and backup kernel trees. > if [[ ${MAKELINK} == 1 ]]; then > cd ${ROOT}usr/src > ln -sf linux-${KV_FULL} linux > [[ ${MAKE_OLDLINK} == 1 ]] && ln -sf ${K_DIR} linux.old > cd ${OLDPWD} > fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 100174
:
64307
|
64308
|
64422
|
64463