{"id":590,"date":"2024-07-07T12:36:42","date_gmt":"2024-07-07T04:36:42","guid":{"rendered":"https:\/\/tbex.idv.tw\/wordpress_G2\/?p=590"},"modified":"2024-07-07T12:51:30","modified_gmt":"2024-07-07T04:51:30","slug":"gentoo-profiles-23-0-update-%e5%b0%8f%e8%a8%98","status":"publish","type":"post","link":"https:\/\/tbex.idv.tw\/wordpress_G2\/blog\/2024\/07\/07\/gentoo-profiles-23-0-update-%e5%b0%8f%e8%a8%98\/","title":{"rendered":"Gentoo profiles 23.0 update \u5c0f\u8a18"},"content":{"rendered":"<p><a href=\"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317.jpg\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"592\" data-permalink=\"https:\/\/tbex.idv.tw\/wordpress_G2\/blog\/2024\/07\/07\/gentoo-profiles-23-0-update-%e5%b0%8f%e8%a8%98\/pxl_20240707_0424450674409520933643958317\/\" data-orig-file=\"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317.jpg\" data-orig-size=\"1125,2000\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;1.73&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;Pixel 5&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1720355085&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.38&quot;,&quot;iso&quot;:&quot;801&quot;,&quot;shutter_speed&quot;:&quot;0.0374&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"pxl_20240707_0424450674409520933643958317\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317-405x720.jpg\" data-large-file=\"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317-608x1080.jpg\" class=\"aligncenter wp-image-592 size-medium\" src=\"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317-405x720.jpg\" alt=\"\" width=\"405\" height=\"720\" srcset=\"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317-405x720.jpg 405w, https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317-608x1080.jpg 608w, https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317-768x1365.jpg 768w, https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317-864x1536.jpg 864w, https:\/\/tbex.idv.tw\/wordpress_G2\/wp-content\/uploads\/2024\/07\/pxl_20240707_0424450674409520933643958317.jpg 1125w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/a><\/p>\n<p>\u5176\u5be6\u6700\u8fd1\u4e00\u5169\u500b\u6708\u90fd\u6703\u5728<\/p>\n<blockquote><p>emerge &#8211;sync<\/p><\/blockquote>\n<p>\u4e4b\u5f8c, \u99ac\u4e0a\u4f86\u4e00\u767c<\/p>\n<blockquote><p>emerge &#8211;ask -1vUD @world<\/p><\/blockquote>\n<p>\u505a regular system update \u7684 maintenance<\/p>\n<p><!--more--><\/p>\n<p>\u4e4b\u524d\u5927\u6982\u662f\u4e00\u5e74\u6216\u534a\u5e74\u624d\u6703\u60f3\u5230\u4e00\u6b21&#8230;. \u90a3\u5c31\u6709\u6a5f\u6703\u662f\u5927\u5de5\u7a0b&#8230;.<\/p>\n<p>\u5169\u5e74\u524d\u767c\u73fe portage \u53ef\u4ee5\u8d70 <a href=\"https:\/\/github.com\/gentoo\/portage\">git <\/a>\u6240\u4ee5\u5176\u5be6\u9019\u66f4\u65b0\u53ef\u4ee5 git checkout \u9010\u6708\u4e00\u76f4\u6efe\u52d5\u66f4\u65b0\u4e0a\u4f86\u88dc\u8ab2<\/p>\n<p>\u4f46\u662f\u9019\u6b21\u649e\u7246\u4e86! \u6309 README \u66f4\u65b0\u5b8c\u4e4b\u5f8c \u7121\u8ad6\u9060\u7aef\u9084\u662f local \u90fd\u7121\u6cd5\u767b\u5165:<\/p>\n<blockquote><p>gentoo login module failed<\/p><\/blockquote>\n<p>\u770b\u8d77\u4f86\u662f\u8ddf PAM \u6709\u95dc,<\/p>\n<p>\u9019\u908a\u6709\u500b\u667a\u969c\u7684\u5c0f\u63d2\u66f2\u662f&#8230; \u5728\u66f4\u65b0\u524d\u90fd\u6703\u5099\u4efd system image, \u4f46\u662f system image \u653e\u5728 local \u7684 zfs, \u90a3\u500b zfs \u53c8\u5f88\u525b\u597d cross\u4e00\u500b\u9700\u8981 kernel boot \u95dc\u6389 iommu \u624d\u80fd \u6b63\u78ba\u4f7f\u7528\u7684 SATA controller, \u5c0e\u81f4 live OS (\u624b\u908a\u7576\u6642\u53ea\u6709 Linux Mint \u7684 install USB disk), \u6839\u672c\u7121\u6cd5\u639b\u8f09\u90a3\u500b zfs<\/p>\n<p>\u7c21\u55ae\u7684\u8aaa&#8230;.\u5c31\u662f\u7cfb\u7d71\u5099\u4efd\u6a94\u53ea\u80fd\u7528\u539f\u6a5f\u624d\u80fd\u639b\u8f09!!! \u4f46\u662f\u6a5f\u5668\u53c8\u4e0d\u80fd\u767b\u5165, \u8d85\u7d1a\u56e7<\/p>\n<p>\u597d\u5728, PAM\u64cb\u7684\u53ea\u6709 shell \u767b\u5165, \u4f46 NFS &amp; samba \u9060\u7aef\u90fd\u9084\u80fd access, \u610f\u5473\u8457\u4ecd\u7136\u53ef\u4ee5\u62ff\u5230 system image\u7684\u5099\u4efd\u6a94&#8230; \u9019\u6642\u5019\u5df2\u7d93\u662f 6\/24 \u534a\u591c&#8230;. \u6c92\u932f, \u525b\u65c5\u884c\u56de\u4f86, \u53c8\u906d\u9047\u9019\u7a2e\u60e1\u8017\u771f\u7684\u662f&#8230;..\u760b\u72c2&#8230;.\u539f\u672c\u4ee5\u70ba\u5927\u534a\u8f29\u5b50\u7684 data \u5c31\u9019\u6a23\u518d\u4e5f\u62ff\u4e0d\u56de\u4f86\u4e86 lol (\u597d\u5427 \u5176\u5be6\u6709\u7570\u5730\u5099\u63f4&#8230;\u5927\u6982\u662f\u4e94\u5e74\u524d\u7684\u5099\u4efd\u4e86)<\/p>\n<p>\u5f8c\u9762\u767c\u73fe, \u4e3b\u8981\u662f\u5f88\u4e45\u4e4b\u524d\u5047\u63b0\u7684\u53bb\u641e\u4e86 selinux build, \u4f46\u662f\u5be6\u969b\u4e0a\u4e00\u76f4\u6c92\u958b (permissive) \u4f46\u662f\u63db profile\u7684\u6642\u5019, make build world \u9047\u5230 build failed, \u4f46\u56e0\u70ba\u4e2d\u9593\u7121\u6cd5\u4ecb\u5165\u7dad\u4fee \u5c0e\u81f4 dependency issue, \u5be6\u969b\u4e0a\u932f\u8aa4\u662f\u906d\u9047\u4e86\u7121\u9650\u7684<\/p>\n<blockquote><p>Failed to resolve typeattributeset statement at \/var\/lib\/selinux\/strict\/tmp\/modules\/100\/apm\/cil:71<br \/>\nFailed to resolve AST<\/p><\/blockquote>\n<p>\u5ee2\u68c4\u4e86\u5169\u500b\u79ae\u62dc, \u4eca\u5929\u7d42\u65bc\u4fee\u597d, \u4e3b\u8981\u662f profile \u8981\u5148\u5207\u5230 non-selinux \u5f8c\u8981\u5148\u57f7\u884c (\u9019\u6b21\u662f\u5148\u5f9e default\/linux\/amd64\/17.1\/selinux \u5207\u5230 default\/linux\/amd64\/17.1):<\/p>\n<blockquote><p>emerge &#8211;ask &#8211;update &#8211;newuse &#8211;deep @world<\/p><\/blockquote>\n<p>\u78ba\u4fdd\u6240\u6709package \u4e0d\u6703\u518d\u7528 selinux \u7684 usage, \u5728\u9019\u4e4b\u5f8c\u5efa\u8b70\u8981\u5148<\/p>\n<blockquote><p>emerge &#8211;ask &#8211;emptytree &#8211;usepkg=n @system #\u9019\u884c\u53ef\u4ee5\u7701\u7565&#8230;\u6211\u53ea\u662f\u6bd4\u8f03\u8b39\u614e<br \/>\nemerge &#8211;ask &#8211;emptytree &#8211;usepkg=n @world<\/p><\/blockquote>\n<p>\u628a\u6574\u500b world package \u90fd\u66f4\u65b0\u4e00\u904d, \u6700\u5f8c\u624d\u771f\u7684\u5207\u5230 2023 \u7684 profile: default\/linux\/amd64\/23.0\/split-usr \u7136\u5f8c\u518d\u4fdd\u5b88\u7684\u91cd\u65b0 build world (\u6211\u81ea\u5df1\u4e8b\u5f8c\u8996\u89ba\u7684\u4e0d\u9700\u8981)<\/p>\n<p>\u6c92\u932f, \u6574\u500b\u904e\u7a0b\u8981 make build world&#8230;. 4 times, \u56e0\u70ba\u662f computing bound \u7684 task, \u53c8\u70ba\u4e86\u5b89\u5168\u8d77\u898b, \u9019\u6574\u500b task \u662f\u900f\u904e\u53e6\u4e00\u53f0 Ryzen 9 5950X chroot \u5728build&#8230;. 16 cores 32 threads &#8230;. \u5728\u4e0d\u5230 12\u5c0f\u6642\u5b8c\u6210&#8230;&#8230; \u771f\u662f appreciate \u8607\u5abd\u554a<\/p>\n<p>\u9019\u6b21\u9806\u4fbf\u4fee\u4e86\u4e00\u4e0b lm_sensors &#8230; \u6c92\u60f3\u5230 amd \u7684\u5167\u5efa sensor \u5fd8\u4e86\u958b<br \/>\n\u53e6\u5916\u628a kernel 3.x, 4.x, 5.x \u7684 ko\u90fd\u6e05\u6389\u4e4b\u985e\u7684<br \/>\n\u9084\u5728\u60f3\u8981\u4e0d\u8981\u5347\u7d1a kernel 6.1 for AMD \u81ea\u5df1\u7684 HW Power-control &#8230;.\u00a0 \u4e0d\u904e\u7b97\u4e86\u9019\u597d\u50cf\u9084\u597d &#8230; kernel 5.10 \u53ef\u80fd\u652f\u63f4\u5ea6\u6bd4\u8f03\u9ad8 !?&#8230;. \u5c31\u7e7c\u7e8c\u7528\u5230 EOL\u5427 (2026 Dec)<\/p>\n<p>\u6574\u500b\u7cfb\u7d71\u5176\u5be6\u53ea\u662f\u4e00\u500b home NAS &#8230; \u5728\u9019\u96f2\u7aef\u5e74\u4ee3, \u5176\u5be6\u53ef\u4ee5\u5ee2\u6389\u4e86, \u4f46\u9019\u4e5f\u7b97\u662f\u500b\u4eba\u5f9e\u5b78\u751f\u6642\u4ee3\u7684\u4e00\u500b\u5c0f\u5805\u6301&#8230;.. \u9019\u500b\u5c0f\u7cfb\u7d71\u5f9e FreeBSD migrate\u5230 gentoo Linux \u81f3\u4eca\u61c9\u8a72\u4e5f\u6709\u500b 15\u5e74 &#8230; \u5e0c\u671b\u9019\u500b\u5c0f\u5805\u6301\u53ef\u4ee5\u7e7c\u7e8c\u4e0b\u53bb XDrz<\/p>\n<p>\u76ee\u524d\u898f\u683c\u662f\u7b2c\u4e09\u4ee3\u4e3b\u6a5f (\u7b2c\u4e00\u4ee3 Opteron 170, \u7b2c\u4e8c\u4ee3 Athlon X4 5350 \u5f9e\u6b64\u6709\u4e86 ECC memory support) \u6574\u6a5f\u5f85\u6a5f 20W<br \/>\nAMD Ryzen 7 2700E<br \/>\nDDR4 ECC 16GB<br \/>\n3-Way RAID-Z1<br \/>\n\u7121\u986f\u793a<br \/>\n\u6a5f\u6bbc power key \u5df2\u7d93\u77ed\u8def\u4e86,\u00a0 2003 \u5e74\u8cb7\u7684, \u806f\u7acb\u4e0d\u77e5\u9053\u5565\u7684&#8230;. \u8a18\u5f97\u6709\u9ede\u8cb4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5176\u5be6\u6700\u8fd1\u4e00\u5169\u500b\u6708\u90fd\u6703\u5728 emerge &#8211;sync \u4e4b\u5f8c, \u99ac\u4e0a\u4f86\u4e00\u767c emerge &#8211; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/tbex.idv.tw\/wordpress_G2\/blog\/2024\/07\/07\/gentoo-profiles-23-0-update-%e5%b0%8f%e8%a8%98\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Gentoo profiles 23.0 update \u5c0f\u8a18\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-590","post","type-post","status-publish","format-standard","hentry","category-geek"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6xFwC-9w","_links":{"self":[{"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/posts\/590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/comments?post=590"}],"version-history":[{"count":7,"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/posts\/590\/revisions"}],"predecessor-version":[{"id":598,"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/posts\/590\/revisions\/598"}],"wp:attachment":[{"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/media?parent=590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/categories?post=590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tbex.idv.tw\/wordpress_G2\/wp-json\/wp\/v2\/tags?post=590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}