diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-15 00:05:14 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-15 00:05:14 (EST) |
commit | e76dcfd51cf5e1f780383ab6ff12df8d8cc59eed (patch) | |
tree | 3c95b932f672530786d51af5ae8486a39651da5d | |
parent | 0f2a1dafc585c29c87abfd52368dd717ec096fbb (diff) |
cmd/mkinitramfs: New stub of a command
-rw-r--r-- | locale/en_US.sh | 6 | ||||
-rw-r--r-- | src/cmd/local.mk | 3 | ||||
-rw-r--r-- | src/cmd/mkinitramfs.sh | 32 |
3 files changed, 40 insertions, 1 deletions
diff --git a/locale/en_US.sh b/locale/en_US.sh index 53a608f..b33e5ce 100644 --- a/locale/en_US.sh +++ b/locale/en_US.sh @@ -106,6 +106,12 @@ msg_prokit_cmd_installer_pc_summary='install a PC system onto a block device' msg_prokit_cmd_installer_pc_usage='-a <arch> -p <plat> [-m <mirror>] '\ '<suite> <device>' +# src/cmd/mkinitramfs.sh +msg_prokit_cmd_mkinitramfs_summary='generate an initramfs containing an '\ +'installed system' +msg_prokit_cmd_mkinitramfs_usage='-l <vmlinuz-output> -i <initramfs-output> '\ +'<root>' + # src/profile.sh msg_prokit_profile_not_found='Profile "%s" not found' diff --git a/src/cmd/local.mk b/src/cmd/local.mk index a6dd3bd..700e5ee 100644 --- a/src/cmd/local.mk +++ b/src/cmd/local.mk @@ -5,4 +5,5 @@ prokit_SOURCES += \ src/cmd/shell.sh \ src/cmd/opkg.sh \ src/cmd/build.sh \ - src/cmd/installer-pc.sh + src/cmd/installer-pc.sh \ + src/cmd/mkinitramfs.sh diff --git a/src/cmd/mkinitramfs.sh b/src/cmd/mkinitramfs.sh new file mode 100644 index 0000000..8983f15 --- /dev/null +++ b/src/cmd/mkinitramfs.sh @@ -0,0 +1,32 @@ +# "mkinitramfs" command +# +# Copyright (C) 2016 Patrick "P. J." McDermott +# +# This file is part of the ProteanOS Development Kit. +# +# The ProteanOS Development Kit is free software: you can redistribute +# it and/or modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# The ProteanOS Development Kit is distributed in the hope that it +# will be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with the ProteanOS Development Kit. If not, see +# <http://www.gnu.org/licenses/>. + +cmd_mkinitramfs_optstring='l:i:' + +cmd_mkinitramfs_main() +{ + : Stub +} + +cmd_mkinitramfs_register() +{ + register_cmd 'mkinitramfs' +} +__init cmd_mkinitramfs_register |