fedora-release-25-2$>QqW?qpѾPsn>>D?Dd  +x|  D t   |lt 5( _8 h9 :#>(HB(NG(H(I)PX)hY)Z)[)\)]*^+eb,d-e-f-l-t-4u-v-/kDDDCfedora-release252Fedora release filesFedora release files such as various /etc/ files that define the release.Ybuildvm-16.phx2.fedoraproject.org(ZFedora ProjectFedora ProjectMITFedora ProjectSystem Environment/Basehttps://pagure.io/fedora-releaselinuxnoarch-- This is intended to be run as an RPM scriptlet. -- Keep this file in sync with the convert-to-edition -- shell script local VARIANT_FILE = "/usr/lib/variant" -- Read in /usr/lib/variant and determine the edition local function read_variant() local variant local f = io.open(VARIANT_FILE, "r") if f ~= nil then while true do local line = f:read() if line == nil then break end local m = line:match("^VARIANT_ID=([^\n]+)") if m ~= nil then variant = m end end f:close() end return variant end -- Atomically replace a file with new contents local function writefile(path, data) local tmp = path .. ".convert-to-edition" local f = io.open(tmp, "w+") if f == nil then return end f:write(data) f:close() if not os.rename(tmp, path) then os.remove(tmp) end end -- Forcibly replace a symlink local function symlink(from, to) os.remove(to) assert(posix.symlink(from, to)) end -- Run a subroutine in a child process local function execute(...) local pid = posix.fork() if pid == 0 then posix.exec(...) posix.exit(1) elseif pid ~= -1 then local status = posix.wait(pid) if status ~= 0 then local program = ... error(program .. " exited with status " .. status) end end end -- Remove preset files for other editions -- This should never be necessary, but it's best to be safe local function clear_presets() local path = "/usr/lib/systemd/system-preset" for file in posix.files(path) do if file:match("^80.*%.preset$") then os.remove(path .. "/" .. file) end end end -- Get a list of presets that need to be enabled or disabled -- as part of the installation of this edition local function read_presets(path) local result = {} local f = assert(io.open(path)) if f ~= nil then while true do local line = f:read() if line == nil then break end local cmd, arg = line:match("^([^ \t]+)[ \t]+([^\n \t]+)") if cmd == "enable" or cmd == "disable" then result[#result + 1] = arg end end f:close() end return result end local function set_variant(variant) writefile(VARIANT_FILE, "VARIANT_ID=" .. variant .. "\n") end local function set_release(release) symlink("./os.release.d/os-release-" .. release, "/usr/lib/os-release") end local function set_issue(release) symlink("./os.release.d/issue-" .. release, "/usr/lib/issue") end -- release: the VARIANT_ID for os-release -- issue: which /etc/issue file to install -- presets: whether this edition has extra presets beyond the -- defaults to enable or disable local variants = { atomichost = {release = "atomichost", issue = "fedora", presets = false}, cloud = {release = "cloud", issue = "fedora", presets = false}, nonproduct = {release = "fedora", issue = "fedora", presets = false}, server = {release = "server", issue = "server", presets = true}, workstation = {release = "workstation", issue = "fedora", presets = true}, } -- Call out to systemctl to enable or disable presets local function set_presets(edition, apply_presets) if variants[edition].presets then local target = "/usr/lib/systemd/system-preset/80-" .. edition .. ".preset" symlink("../../os.release.d/presets/80-" .. edition .. ".preset", target) if apply_presets then local presets = read_presets(target) local systemctl = "/usr/bin/systemctl" if posix.access(systemctl, "x") then --fork off a systemctl call local pid = assert(posix.fork()) if pid == 0 then -- Child posix.exec(systemctl, "preset", "-q", table.unpack(presets)) -- In case exec() fails os.exit(17) else -- RPM assert(posix.wait(pid)) end end end end end local function convert_to_edition(edition, apply_presets) local variant = variants[edition] if variant == nil then error("undefined edition: " .. edition) end set_release(variant.release) set_issue(variant.issue) clear_presets() set_presets(edition, apply_presets) end local function install_edition(edition) -- Create the variant file if it does not already exist. This needs -- to be done on both installation and upgrade, to ensure that we -- upgrade from F23 and earlier properly. if not posix.access(VARIANT_FILE, "f") then set_variant(edition) end if read_variant() == edition then -- (On initial installation only), fix up after %systemd_post -- in packages possibly installed before our preset file was -- added -- On upgrades, do not enable or disable presets to avoid -- surprising the user local initial_install = arg[2] == 1 convert_to_edition(edition, initial_install) end end local function uninstall_edition(edition) -- If we are uninstalling, we need to reset the variant file and -- force the os-release file back to os-release-fedora. We do this -- in %preun so that we don't have any time where the os-release -- symlink is dangling (since in %postun, the os-release-$EDITION -- file will have already been removed) if arg[2] == 0 then if read_variant() == edition then set_variant("nonproduct") convert_to_edition("nonproduct", false) end end end -- On initial installation, we'll at least temporarily put the non-product -- symlinks in place. It will be overridden by fedora-release-$EDITION -- %post sections because we don't write the /usr/lib/variant file until -- %posttrans to avoid trumping the fedora-release-$EDITION packages. -- This is necessary to avoid breaking systemctl scripts since they rely on -- /usr/lib/os-release being valid. We can't wait until %posttrans to default -- to os-release-fedora. if arg[2] == "0" then set_release(fedora) set_issue(fedora) end -- We also want to forcibly set these paths on upgrade if we are explicitly -- set to "nonproduct" if read_variant() == "nonproduct" then convert_to_edition("nonproduct", false) end  \J  'A큤A큤A큤AA큤YYYYYYYYYYYYYYYYYYYYYYYY814c1dc579774ef39ef8e83da6bb3b0d72cac029f685566eaeaf9a3d62cd5ea48284c096d83e74a410141eb699edb997d46f100d6cdacfa53383f2525bd2f60a2b9bde05b2026bd656e33dc53be057228fc806c78ec955c6614a99348da5ad989489d28fbd325690224dd76c0d7ae403177e15a0d63758cc0171327b5ba2aa85f1e4e8a2c7a0cc792068478aab0e076aea0a46406e67edd5376b03165e733e665e36bf0e540f9c6b715013198580b2f02ab99f2b3f75aa8bc6b5efc63e52d649037ee720a5c511d7b257216cc81b55b5ebeb09775426288f2d46d614594d9e56fcca7ce89bee75746adfb6a2f0a470930e7df07db94a2e78d95f7b01614d80f83127b197b9eae62eb84eeed69b0413419612238332006183e36a3fba895783784be97f309af94ed117b2820a6de640c01e289119259bd1663a7edee23dc468bae98708047560db5a5bcf7495c3108709760cbf6202df7b216cbd7918725e7d0f../usr/lib/issue../usr/lib/issue.net../usr/lib/os-releasefedora-releasefedora-release@@@rootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootfedora-release-25-2.src.rpmconfig(fedora-release)fedora-releasefedora-release-nonproductfedora-release-standardredhat-releasesystem-releasesystem-release(25)     config(fedora-release)fedora-repos(25)rpmlib(BuiltinLuaScripts)rpmlib(CompressedFileNames)rpmlib(FileDigests)rpmlib(PayloadFilesHavePrefix)rpmlib(PayloadIsXz)25-24.2.2-13.0.4-14.6.0-14.0-15.2-14.13.0.1Y;@X@X2@X2@X=W Wm W=WVV@V޾V'@V2V>@VIMohan Boddu - 25-2Mohan Boddu - 25-1Dennis Gilmore - 25-0.14Zbigniew Jędrzejewski-Szmek - 25-0.13Stephen Gallagher - 25-0.12Mohan Boddu - 25-0.11Dennis Gilmore - 25-0.10Stephen Gallagher - 25-0.9Dennis Gilmore - 25-0.8Dennis Gilmor - 25-0.7Dennis Gilmore - 25-0.6Stephen Gallagher - 25-0.5Stephen Gallagher - 25-0.4Stephen Gallagher - 25-0.3Stephen Gallagher - 25-0.2Dennis Gilmore - 25-0.1- Support for the DRBD link-cleaning service - Add SUPPORT_URL definition to os-release- Setup for f25 final - snapd timers are enabled by default- bump for needed rebuild - add note on how to contribute- Fix mangled Release tag- Move convert-to-edition to its own subpackage - Eliminate circular dependency on bash from the base package - Enable switcheroo-control.service- Setup for branching.- apply fix from adamw for lua globbing bug rhbz#1349664- Fix %posttrans to properly write /usr/lib/variant for nonproduct- enable virtlogd.socket- drop Requires(post): sed - Fork to execute systemctl calls- Properly handle systemd presets in Lua scripts - enable opal-prd.service - Remove call to grub2-mkconfig- Add a subpackage for Atomic Host to provide /usr/lib/os-release differences- Rewrite scriptlets in Lua to avoid a circular dependency on coreutils - Be more specific with fedora-release-server's Cockpit requirement (Do not pull in all of the optional Cockpit components as mandatory)- Only run grub2-mkconfig for platforms that support it - Remove erroneous RPM_BUILD_ROOT variables in convert-to-edition- Fix typo that breaks %post on upgrades of Workstation and Cloud- setup for rawhide being f25fedora-release-nonproductfedora-release-standardredhat-release 25-225-22522-0.8 23-0.322-0.8fedora-releaseissueissue.netos-releaseredhat-releasesystem-releasesystem-release-cpeissueissue.netos-releaseos.release.dissue-fedoraos-release-fedorapresetsmacros.distsystem-preset85-display-manager.preset90-default.preset99-default-disable.presetuser-presetvariantfedora-releaseFedora-Legal-README.txtLICENSE/etc//usr/lib//usr/lib/os.release.d//usr/lib/rpm/macros.d//usr/lib/systemd//usr/lib/systemd/system-preset//usr/share/licenses//usr/share/licenses/fedora-release/-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tablesdrpmxz2noarch-redhat-linux-gnuASCII textcannot open `/builddir/build/BUILDROOT/fedora-release-25-2.noarch/usr/lib/issue' (No such file or directory)cannot open `/builddir/build/BUILDROOT/fedora-release-25-2.noarch/usr/lib/os-release' (No such file or directory)directorycannot open `/builddir/build/BUILDROOT/fedora-release-25-2.noarch/usr/lib/variant' (No such file or directory)UTF-8 Unicode text-- This is intended to be run as an RPM scriptlet. -- Keep this file in sync with the convert-to-edition -- shell script local VARIANT_FILE = "/usr/lib/variant" -- Read in /usr/lib/variant and determine the edition local function read_variant() local variant local f = io.open(VARIANT_FILE, "r") if f ~= nil then while true do local line = f:read() if line == nil then break end local m = line:match("^VARIANT_ID=([^\n]+)") if m ~= nil then variant = m end end f:close() end return variant end -- Atomically replace a file with new contents local function writefile(path, data) local tmp = path .. ".convert-to-edition" local f = io.open(tmp, "w+") if f == nil then return end f:write(data) f:close() if not os.rename(tmp, path) then os.remove(tmp) end end -- Forcibly replace a symlink local function symlink(from, to) os.remove(to) assert(posix.symlink(from, to)) end -- Run a subroutine in a child process local function execute(...) local pid = posix.fork() if pid == 0 then posix.exec(...) posix.exit(1) elseif pid ~= -1 then local status = posix.wait(pid) if status ~= 0 then local program = ... error(program .. " exited with status " .. status) end end end -- Remove preset files for other editions -- This should never be necessary, but it's best to be safe local function clear_presets() local path = "/usr/lib/systemd/system-preset" for file in posix.files(path) do if file:match("^80.*%.preset$") then os.remove(path .. "/" .. file) end end end -- Get a list of presets that need to be enabled or disabled -- as part of the installation of this edition local function read_presets(path) local result = {} local f = assert(io.open(path)) if f ~= nil then while true do local line = f:read() if line == nil then break end local cmd, arg = line:match("^([^ \t]+)[ \t]+([^\n \t]+)") if cmd == "enable" or cmd == "disable" then result[#result + 1] = arg end end f:close() end return result end local function set_variant(variant) writefile(VARIANT_FILE, "VARIANT_ID=" .. variant .. "\n") end local function set_release(release) symlink("./os.release.d/os-release-" .. release, "/usr/lib/os-release") end local function set_issue(release) symlink("./os.release.d/issue-" .. release, "/usr/lib/issue") end -- release: the VARIANT_ID for os-release -- issue: which /etc/issue file to install -- presets: whether this edition has extra presets beyond the -- defaults to enable or disable local variants = { atomichost = {release = "atomichost", issue = "fedora", presets = false}, cloud = {release = "cloud", issue = "fedora", presets = false}, nonproduct = {release = "fedora", issue = "fedora", presets = false}, server = {release = "server", issue = "server", presets = true}, workstation = {release = "workstation", issue = "fedora", presets = true}, } -- Call out to systemctl to enable or disable presets local function set_presets(edition, apply_presets) if variants[edition].presets then local target = "/usr/lib/systemd/system-preset/80-" .. edition .. ".preset" symlink("../../os.release.d/presets/80-" .. edition .. ".preset", target) if apply_presets then local presets = read_presets(target) local systemctl = "/usr/bin/systemctl" if posix.access(systemctl, "x") then --fork off a systemctl call local pid = assert(posix.fork()) if pid == 0 then -- Child posix.exec(systemctl, "preset", "-q", table.unpack(presets)) -- In case exec() fails os.exit(17) else -- RPM assert(posix.wait(pid)) end end end end end local function convert_to_edition(edition, apply_presets) local variant = variants[edition] if variant == nil then error("undefined edition: " .. edition) end set_release(variant.release) set_issue(variant.issue) clear_presets() set_presets(edition, apply_presets) end local function install_edition(edition) -- Create the variant file if it does not already exist. This needs -- to be done on both installation and upgrade, to ensure that we -- upgrade from F23 and earlier properly. if not posix.access(VARIANT_FILE, "f") then set_variant(edition) end if read_variant() == edition then -- (On initial installation only), fix up after %systemd_post -- in packages possibly installed before our preset file was -- added -- On upgrades, do not enable or disable presets to avoid -- surprising the user local initial_install = arg[2] == 1 convert_to_edition(edition, initial_install) end end local function uninstall_edition(edition) -- If we are uninstalling, we need to reset the variant file and -- force the os-release file back to os-release-fedora. We do this -- in %preun so that we don't have any time where the os-release -- symlink is dangling (since in %postun, the os-release-$EDITION -- file will have already been removed) if arg[2] == 0 then if read_variant() == edition then set_variant("nonproduct") convert_to_edition("nonproduct", false) end end end -- If we get to %posttrans and nothing created /usr/lib/variant, set it to -- nonproduct. install_edition("nonproduct")utf-8? 7zXZ !#,]"k%Ysfkxy-´n\Fm=$+FskYwtN4hV[Eum8@\=I+0t~ -^EP=Li]wWIxzMDLKP`P9vN]=LcI|jb6vH3f'}資HE@@c{bWNiTOAJT0!:1<7Wfo6R,%E`nHqh =:_D!F9^0_y]il}.X \xK,Ǵ#N+wxiE5Ǝ 8!HB' ;׌|b]C>{`ENazwJQO*ԃ( [f֘kgʑXzaN?Y3&"S ԓ0Zzŵ ^mF1rV/r;זueZJ#zBF-O" }y!zBɩׇ9pu4f}\[ƕ{CG}x$AܢX^K0>)U?] ĥxөƣ*va#{IoN^Nܼ H+ nvKCbFNNg4f^ڕӀi>*8nKxC꟟< D;-<-RPVo UvGDjRy5=ڬ\T/+EKPQ¿6JM12:|̡ue_{NJa_{a۷6J?7Xfdfw޻ vHzu^vſB0J 8(4~Tz{@dI3qdFʏߢ%0y7I!QNL_|{A_$#;rWo0w{:8 T\+FF0j&guGrk~A-/敡ܬ(I0i;ŢߠLnΰ# vNc97?b=w>4]`.r$+8?70P!CKNXdnvxOm9_Qm.n`e+8a_4'q*:4r@i;ԸS@ YVhrc~U9q\)Al19tŤFkh*:RY<__[Ð6u!ۉ{1Y|Y._@ZRS.pn{M^50uM&P)\V\1Bybx+VFM1`cy1=S8եb+(4(eh)y<;IK-YT ~fmBw@쎸%0*A%<5 _g3F,O&iʋ݋:gPhWP;t<3:zc ou2wy,Z'bpXWk`qx#U!T*&qr.\J;^5m]߇*?T(I«1'=|Yy>GDuY?ib0_o}i:Ġ[d6OGy-x YZ