{"id":4219,"date":"2022-12-07T17:24:33","date_gmt":"2022-12-07T09:24:33","guid":{"rendered":"https:\/\/www.liangliang.org.cn\/?p=4219"},"modified":"2022-12-07T17:24:33","modified_gmt":"2022-12-07T09:24:33","slug":"macbookpro-linux-install-hooks","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=4219","title":{"rendered":"macbookpro linux install hooks"},"content":{"rendered":"<pre><code>[root@arch usr]# cat \/boot\/refind_linux.conf \n&quot;Boot with standard options&quot;  &quot;ro root=UUID=3ff5c47a-fda5-be42-b402-d6c4ddf8634f intel_iommu=on iommu=pt efi=noruntime text&quot;\n#&quot;Boot to single-user mode&quot;    &quot;ro root=UUID=3ff5c47a-fda5-be42-b402-d6c4ddf8634f intel_iommu=on iommu=pt efi=noruntime text single&quot;\n#&quot;Boot with minimal options&quot;   &quot;ro root=\/dev\/nvme1n1p5&quot;\n[root@arch usr]# cat \/etc\/mkinitcpio.conf |grep thunderbolt\nHOOKS=(base udev autodetect modconf block filesystems keyboard fsck thunderbolt)\n# thunderbolt3 \nMODULES=&quot;thunderbolt&quot;\n[root@arch usr]# cat \/etc\/initcpio\/install\/thunderbolt\n#!\/bin\/bash\nbuild() {\n    add_runscript\n}\nhelp(){\necho &quot;I don&#039;t know if this is needed for it to work&quot;\n}\n[root@arch usr]# cat \/etc\/initcpio\/hooks\/thunderbolt \n#!\/usr\/bin\/ash\nrun_hook(){\necho 1 &gt; \/sys\/bus\/thunderbolt\/devices\/0-1\/authorized\n}\n\n[root@arch usr]# \n[root@arch usr]# cat \/etc\/fstab \n# Static information about the filesystems.\n# See fstab(5) for details.\n\n# &lt;file system&gt; &lt;dir&gt; &lt;type&gt; &lt;options&gt; &lt;dump&gt; &lt;pass&gt;\nUUID=3ff5c47a-fda5-be42-b402-d6c4ddf8634f   \/   ext4    rw,relatime 0 1\n#\/dev\/nvme1n1p5         \/           ext4        rw,relatime 0 1\n\nUUID=8403-1904  \/boot\/grub\/efi  vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2\n#\/dev\/nvme1n1p2         \/boot\/grub\/efi  vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2\n\n\/swapfile               none        swap        defaults    0 0\n\n[root@arch usr]# \n\nmkinitcpio -P<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[root@arch usr]# cat \/boot\/refind_linux.conf &quot;Boot with standard options&quot; &quot;ro root=UU&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-4219","post","type-post","status-publish","format-standard","hentry","category-debian"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4219"}],"version-history":[{"count":1,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4219\/revisions"}],"predecessor-version":[{"id":4220,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4219\/revisions\/4220"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}